How to pre-set the render output for Redshift and Mantra

   4839   3   1
User Avatar
Member
12 posts
Joined: Jan. 2017
Offline
Hi there,

I'm looking at having a little function in Houdini that pre populates the “Output Picture” for Mantra nodes and “Filename Prefix” for Redshift nodes (based on scene location).

…I'm essentially after a way to edit the paramaters using python..

Will Houdini allow me to do this? …anyone know?

Cheers
Edited by sideeffectsuser - Aug. 1, 2017 08:20:43
User Avatar
Member
2631 posts
Joined: June 2008
Offline
Sure, just open up a python shell and drop the Mantra or Redshift ROP into the shell window. You will see the full path to the node displayed. Simply assign the hou.node() to a variable and you can read and write the parameters of the node.
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
User Avatar
Member
12 posts
Joined: Jan. 2017
Offline
Cheers.

For anyone else who may stumble upon this thread, here's how I did it:

output = "//server/my_special_location/$FILM`_`$SHOT`_`$VERSION`_`$OS.$AOV.$F6.exr"
for outNode in hou.node("/out").allSubChildren():
    ROPNode = outNode.type().name()
    if "Redshift_ROP" in str(ROPNode):
        ROPNodeName = "/out/" + str(outNode)
        hou.node(ROPNodeName).parm("RS_outputEnable").set(True)
        hou.node(ROPNodeName).parm("RS_outputFileNamePrefix").set(output)
Edited by sideeffectsuser - Aug. 2, 2017 10:32:18
User Avatar
Member
3 posts
Joined: July 2019
Offline
Hello,
i'm rendering a sequence with some AOVs.
I would like to export each AOV as a separate sequence instead of having all in one multilayer exr.
The issue is that In the filename I'm getting the AOV description after the sequence number witch naturally gives me problems when importing in Fusion.
Any idea ho to solve this?
Mladen Pozeg
www.mladenpozeg.com
  • Quick Links