Jump to content

Changes At Rendertime


HyFrmn

Recommended Posts

I'm new to scripting with houdini. I have a scene setup with a switch, with geometry that needs to cook going into input 0, and a file node going into input 1. My goal was to write a script, that would automatically change the input on the switch to 0, before renders, and back to 1 after renders. I've been using opparm to do this with success when I type the commands directly in to the textport, but when I put them in a file, and point the pre/post render script to them, nothing happens. Any ideas??

Thanks

Link to comment
Share on other sites

From the Help:

Pre & Post Frame Render Scripts

Many output OPs have a pre-render, pre-frame, post-frame and post-render script available, they function as follows:

o The pre-render script is run one time before any rendering starts.

o The pre-frame script is run before each frame is rendered.

o The post-frame script is run after each frame is rendered.

o The post-render script is run one time after the entire render is completed.

so what you're looking for is a pre-frame render script

Link to comment
Share on other sites

thanks for all the replies but I quickly found my problems. I thought the pre/post render scripts, were the path to a script file, and not actually script. so I actually had to source the scripts myself. Also I found that the takes are a much quicker solution. Thanks for the help.

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...