from a shell rop and have the node color itself, and/or
query some error state, or further raise a more informative
Error. Ultimately, it would be great to be able to identify
where certain shell rops in a rop otl failed.. but heres a
simplified example…
In the Scripts Tab of a Shell Rop ive entered:
print “PRE RENDER”; raise Exception(“WTF”)and set the script type to python.
when invoke a render on the node I get:
-> render -v /out/shell1
Rendering shell1
Render failed:
n = hou.node('/out/shell1')
>>> n.render()
PRE-RENDER
Traceback (most recent call last):
File “<console>”, line 1, in <module>
File “/home/prisms/builder-new/Nightly10.0/dev/hfs/houdini/scripts/python/hou.py”, line 19337, in render
return _hou.RopNode_render(*args, **kwargs)
OperationFailed: The attempted operation failed.
I would have expected the node to have flagged itself
in an red/lined error state much like other rop nodes
that fail. Nothing particular to the exception is printed,
so im wondering how it gets handled, if i can somehow
get more detailed information about a script that failed
in a shell rop, and and how to setup an otl to handle
render failures from internal shell rops that fail. Can
hou.Error() somehow be employed?