Search - User list
Full Version: workitem by index in sops
Root » PDG/TOPs » workitem by index in sops
TRex92
Is there a way to access a particular pdg node and workitem by its index in a python sop?
TRex92
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")
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB