Jump to content

Redshift render


kiryha

Recommended Posts

Hello,

I have a scene with a configurable asset and need to render some asset states with Redshift.
I created a Pyhon script that iterates through dictionary of asset states and submits the render.

render_data = {
    "0": {
        "helmet_geo": 0,
    },
    "1": {
        "helmet_geo": 1,
    }
}

rs_rop = hou.node('/out/Redshift_ROP1')

for job_number, job_data in render_data.items():
    print(f'>> Job {job_number}')

    file_name = f'$HIP/render_{job_number}.jpg'
    rs_rop.parm('RS_outputFileNamePrefix').set(file_name)
    
    rs_rop.render()

I have only the last frame rendered.

It looks like Houdini does not "wait" for each job to be completed (I got prints of all frames instantly and then render starts), so only the last one is processed...

Any suggestions?

 

scene_template_002.hiplc

Link to comment
Share on other sites

I don't have Redshift installed, but for this to work in Mantra you'd have to check "Wait for Render to Complete" in the Driver tab, so the script only gets to run again after the render completed. Which I am assuming is equivalent to having "Non-blocking Current Frame Rendering" turned off for Redshift. 

  • Like 1
Link to comment
Share on other sites

Thank you, you are a life-saver, that "Non-blocking Current Frame Rendering" helped :)

Though I recall I did the same with Mantra and it was working without "Wait for Render to Complete"... 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...