workitem by index in sops
1149 1 0- TRex92
- Member
- 35 posts
- Joined: Dec. 2012
- Offline
- TRex92
- Member
- 35 posts
- Joined: Dec. 2012
- Offline
I found the answer to my own question for anyone else interested
node = hou.node(path to pdg node) pdg_node = node.getPDGNode() #Get work item by index make sure it's unique per work item work_item = pdg_node.workItems[index] #Access attributes using python workItem methods ex. name = work_item.stringAttribute("name")
-
- Quick Links