Search - User list
Full Version: [SOLVED] How to set output processor programatically
Root » Solaris and Karma » [SOLVED] How to set output processor programatically
flord
How do we set an output processor on the USD ROP node in python? I just want to use the built-in "Use Search paths" processor, but I cannot figure out how to add it to the ROP with Python code.
simon_o
The outputprocessors parameter on the usdrop has a script callback defined: loputils.handleOutputProcessorAdd(kwargs)

So something like this should work in the python shell if you have a usd_rop1 in /stage:

kwargs={"node": hou.node("/stage/usd_rop1"), "parm": hou.parm("/stage/usd_rop1/outputprocessors"), "script_value": "useseachpaths"}
loputils.handleOutputProcessorAdd(kwargs)
flord
I got it working with this.

kwargs = {"node": ropnode, "parm":  ropnode.parm("outputprocessors"), "script_value": "usesearchpaths"}
loputils.handleOutputProcessorAdd(kwargs)

I would not have found it in a timely manner without your help.
Thanks a lot!
F
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.