Is there an way to grab the cook time of an upstream work item and store it as an attribute? Or is there another method of storing that data for access?
Cheers,
Jon
cook time attribute?
2284 2 0- jparker
- Member
- 316 posts
- Joined:
- Offline
- tpetrick
- Staff
- 600 posts
- Joined: May 2014
- Offline
You can access the cook time of a work item using the Python API: https://www.sidefx.com/docs/houdini/tops/pdg/WorkItem.html#cookDuration [www.sidefx.com]
For example, you could use a Python Script TOP to store to an attribute: work_item.setFloatAttrib("cooktime", parent_item.cookDuration)
For example, you could use a Python Script TOP to store to an attribute: work_item.setFloatAttrib("cooktime", parent_item.cookDuration)
- jparker
- Member
- 316 posts
- Joined:
- Offline
-
- Quick Links