Hello,
i have issues when referencing the content of an input string inside python.
Can anybody give me a hint, thanks alot!
C.
Reference string input in python
1580 3 1- CarloB
- Member
- 20 posts
- Joined: April 2015
- Offline
- Robbert
- Member
- 53 posts
- Joined: Feb. 2017
- Offline
If you want to get the content of the parameter you should probably use hou.node(".").parm("CONTROLLER_NAME").eval() or hou.node(".").parm("CONTROLLER_NAME").rawValue() depending on what you need. Remember that the name and the label of a parameter are two different things. Reference the name, not the label (CONTROLLER_NAME in your screenshot is the label and might be the name too, but I cannot see that in the screenshot). Hope this helps, Cheers!
Technical VFX artist @ Housemarque / Sony Interactive Entertainment
- CarloB
- Member
- 20 posts
- Joined: April 2015
- Offline
- CarloB
- Member
- 20 posts
- Joined: April 2015
- Offline
-
- Quick Links