How to read value of input parameter of a python script?

Category:
Scripting
Answer

To read an input parameter of a ComPython object in Python you will first need to access your script. For example:

script=app.GetCurrentScript()

Now you have gain access to you ComPython object and you can call any input parameter by just calling its name on the script variable. For example:

script=app.GetCurrentScript()

inpPar=script.NameOfInputPara

app.PrintPlain(inpPar)

Back