Object.Layer gives you a bitmask, so Layer1 = 1, Layer2 = 2, Layer3 = 4, Layer4 = 8 and so on. So if you do something like
Object.Layer = 5
your Object will be on Layer1 and Layer3.
And theeths’ code might not work with Emptys, there is no way to move your emptys between layers with Python.
What I am trying to write is a Radiosity Animator Script. It will loop through all of the frames in the animation, calculate the radiosity, then save the radiosity image to a file.
All I have left to do is figure out how to save the rendered image to a file, and how to render the view, the same as pressing the render this view button on the 3d window header.
Is there some documentation anywhere that lists the entire Blender API impementation. I have found a few small examples but nothing complete.
Then your out of luck depending on what you want to do. The only way to start a render is by using the Blender210 module which is available upto Blender version 2.23:
You also can start the radiosity render with this:
ds.startRadiosity()
BUT, there is no way (at least that I know of) to automatically replace meshes or add meshes, which you would have to do when radiosity calculations have ended…