Ask a Question

Passing a panel as parameter to a script

SOLVED
Lagencie
Frequent Contributor

Passing a panel as parameter to a script

Hello,

 

i am using python as my programming language and I wanted to ask if it is possible to pass a panel to the function.

 

What I want to do is:

 

create a function, that takes a panel as parameter and returns the classname of this panel.

 

best regards and thanks for help upfront

2 REPLIES 2
shankar_r
Community Hero

Hi,

 

Below might help you ,

def getClassName(panelObject):
     return panelObject.JavaClassName you can specify what field you want to return

      
def testFunctoin():
      Log.Message(getClassName(Sys.Process("jp2launcher").SwingObject("MainWindow", "*", -1, 1)))

Thanks
Shankar R

LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com

“You must expect great things from you, before you can do them”

Extension Available

Lagencie
Frequent Contributor

thx

cancel
Showing results for 
Search instead for 
Did you mean: