Pascaru
07-20-2007, 02:22 AM
Hi,
I created PPG Objects in Jscript for XSI, I am now trying to make the same PPG Object with Python for XSI.
This is the code I have for my PPG Logic and Language:
jscript:
oPPGLayout.Logic = CreateHandControls_OnClicked.toString()
oPPGLayout.Language = "JScript" ;
what is the equivalent for Python?? this is what I have:
oPPGLayout.Logic = str("CreateHandControls_OnClicked")
oPPGLayout.Language = "Python" ;
The UI still pops up but i get the error below, saying my function is not defined.
# ERROR : Traceback (most recent call last):
# File "<script Block >", line 1, in <module>
# CreateHandControls_OnClicked
# NameError: name 'CreateHandControls_OnClicked' is not defined
# - [line 1]
# ERROR : Property Page Script Logic Error (Python ActiveX Scripting Engine)
# ERROR : >[1] CreateHandControls_OnClicked
# ERROR : Traceback (most recent call last):
# File "<script Block >", line 1, in <module>
# CreateHandControls_OnClicked
# NameError: name 'CreateHandControls_OnClicked' is not defined
Any suggestions will be greatly appreciated.
Thank you
I created PPG Objects in Jscript for XSI, I am now trying to make the same PPG Object with Python for XSI.
This is the code I have for my PPG Logic and Language:
jscript:
oPPGLayout.Logic = CreateHandControls_OnClicked.toString()
oPPGLayout.Language = "JScript" ;
what is the equivalent for Python?? this is what I have:
oPPGLayout.Logic = str("CreateHandControls_OnClicked")
oPPGLayout.Language = "Python" ;
The UI still pops up but i get the error below, saying my function is not defined.
# ERROR : Traceback (most recent call last):
# File "<script Block >", line 1, in <module>
# CreateHandControls_OnClicked
# NameError: name 'CreateHandControls_OnClicked' is not defined
# - [line 1]
# ERROR : Property Page Script Logic Error (Python ActiveX Scripting Engine)
# ERROR : >[1] CreateHandControls_OnClicked
# ERROR : Traceback (most recent call last):
# File "<script Block >", line 1, in <module>
# CreateHandControls_OnClicked
# NameError: name 'CreateHandControls_OnClicked' is not defined
Any suggestions will be greatly appreciated.
Thank you
