View Full Version : Rendering scripts
CGmaniak
11-25-2006, 07:36 AM
In one of your old free tuts on render globals, papa said that he uses some mel scripts to set up a prodactive rendering (objects to disapear when thay are not in the view of camera, ets.) I wander what type of scripts and where I would need to plug them in?
in the render settings window you can add a pre-render and post-render script. My workflow is to do this. Create an attribute on every object you want to turn off or on. I make this an additional boolean attribute. I call it render_hidden and the values can be on / off (true / false).
then all you need to do is run a pre-render script to take all of the objects in your scene, if the attribute was set to render_hidden then make the visability to 0.
in your post render script you would do the reverse. Set all hidden objects to visability to 1.
Why not just run the script to hide objects? Well I have found that often times I want things like spline IK's and other objects hidden since I don't need them but I may want my controllers or stand in objects during playblasts.
If you set this up right you can make a good dummy proof render script what will work with batch.
Good luck,
Papa
laxman
11-25-2006, 03:05 PM
BTW, the scripts can be input in the render globals at the bottom.
CGmaniak
11-27-2006, 09:27 AM
Thanks for a tip.I'll try to use it in some heavy scene ;)