HyFrmn Posted May 25, 2006 Share Posted May 25, 2006 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 Quote Link to comment Share on other sites More sharing options...
michael Posted May 25, 2006 Share Posted May 25, 2006 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 Quote Link to comment Share on other sites More sharing options...
Jason Posted May 25, 2006 Share Posted May 25, 2006 Look into Takes for this too. They are designed to do this very thing. (If they confuse you, write back.) Quote Link to comment Share on other sites More sharing options...
sibarrick Posted May 25, 2006 Share Posted May 25, 2006 This is probably a really dumb question, but why not just set the render flag to the scene and the display flag to the file sop? Quote Link to comment Share on other sites More sharing options...
HyFrmn Posted May 27, 2006 Author Share Posted May 27, 2006 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. 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.