cook time attribute?

   1998   2   0
User Avatar
Member
284 posts
Joined:
Offline
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
User Avatar
Staff
581 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)
User Avatar
Member
284 posts
Joined:
Offline
Awesome! Thanks for the tip.
  • Quick Links