python doesn't understand where you are in the same way hscript does. As arctor said, you need to run eval() on the node as a python object.
The function my_node = hou.node(“/obj/path_to_node”) will return the node as a python object and store it as my_node. You can then call my_node.parm(“tx”).eval() to get the tx parameter value of this node. This is all in arctors post.
Found 3 posts.
Search results Show results as topic list.
Technical Discussion » Evaluate in Python from a path ?
- quentinC
- 49 posts
- Offline
Technical Discussion » Evaluate in Python from a path ?
- quentinC
- 49 posts
- Offline
What is the error you are getting?
Also, I don't fully understand what you mean by “evaluate a parameter on the SOP within the Python Shell”? Could you upload an example scene?
Also, I don't fully understand what you mean by “evaluate a parameter on the SOP within the Python Shell”? Could you upload an example scene?
Technical Discussion » Caching point problem in laptop
- quentinC
- 49 posts
- Offline
-
- Quick Links