ptyhon/hscript on string behave strange. for example on a font sop you can use python to set the string text parameter, but on a string parameter on the object level You can't, You can switch it in the edit parameter interface dialog, but it has no effect , it seems all selfcreated string parameters do not work with python
martin
string parameters with python expressions do not work
7873 2 0-
- sanostol
- Member
- 621 posts
- Joined: Nov. 2005
- Offline
-
- graham
- Member
- 1926 posts
- Joined: Nov. 2006
- Offline
Python won't work in strings unless you have a keyframe on them. The parameter on the Font SOP has one, thus shows up purple and works fine. Your parameter on your object is just raw string input and does not know to evaluate it as Python. If you set a key on the parm, change the expression to Python, then enter your code it will work fine.
Graham Thompson, Technical Artist @ Rockstar Games
-
- sanostol
- Member
- 621 posts
- Joined: Nov. 2005
- Offline
-
- Quick Links

