jparker
May 10, 2022 09:12:12
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
tpetrick
May 11, 2022 11:03:18
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)
jparker
May 16, 2022 08:12:16
Awesome! Thanks for the tip.