TOPS
Access output of upstream node - Python
Access output of upstream node - Python
results = parent_item.outputFiles
for i in results:
print(i)
Access attribs of upstream node - Python
Access attribs of upstream node - Python
result = work_item.attribValues()
for key, value in result.items():
print(key, ' : ', value)
List of files to workitems - Python
List of files to workitems - Python
//run on a python partition TOP
import hou
paths = [
'$HFS/houdini/pic/butterfly1.pic',
'$HFS/houdini/pic/butterfly2.pic',
'$HFS/houdini/pic/butterfly3.pic',
'$HFS/houdini/pic/butterfly4.pic'
]
for p in paths:
new_item = item_holder.addWorkItem()
new_item.setStringAttrib('texpath', hou.text.expandString(p))
Thanks Matt Estella! for answering my question on the Houdini Forum