Trying to create a script to generate scene states and render
12-05-2011, 08:52 PM
Hi Guys,
This is first post here. I am looking to create a script that creates a scene state for each layer in the scene, colours all objects black except the named layer for that scene state which would be red. Basically I have never written anything past very simple commands so feel totally lost with where to start with this.
example:
camera name in scene = camera
Layer01,Layer02,Layer03 in the scene.
All objects are coloured black, then all Layer01 objects are selected and coloured red and a scene state is created named Layer01.
Render scene state named "camera name_ + Scene state name. ie "camera_Layer01.tga"
This would then loop. All objects are coloured black, then all Layer02 objects are selected and coloured red and a scene state is created named Layer02
Render scene state named "camera name_ + Scene state name. ie "camera_Layer02.tga"
The same for all remaining layers
Hope this all makes sense and is somehow possible.
Many thanks in advance.
|