kiryha Posted June 4 Share Posted June 4 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 Quote Link to comment Share on other sites More sharing options...
dleonhardt Posted June 4 Share Posted June 4 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. 1 Quote Link to comment Share on other sites More sharing options...
kiryha Posted June 4 Author Share Posted June 4 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"... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.