that’s too bad
but thank you so much for the info! I had not known that the blender python systems were so different. I was trying to string together code to form a larger script, and it includes an off import script of some kind as well as a modified multiple mesh import script. I guess that since I already don’t know the API very well (not to mention the 2.5 API!) it would be in my best interests to do my animation sequence in 2.4x
so below is my pseudocode: instead of the handy ‘restrict render’ function, I will just position a camera in one layer and shift the meshes from layer 2 (not visible) into layer 1 at the appropriate time frames.
N = number of files to be imported, from 1, 2, ... N-1, N
M = this will be the frames between different meshes.
A, B, C = X, Y, and Z median offset values to correct the badly positioned files.
Input: multiple .off files.
# Import meshes, each file will be set layer and IPO keys along the way.
set current frame to frame 1
for each file N,
import the file to layer 2
add A, B, and C from coordinates of each object.
Apply render settings and materials are assigned to the N imported files
set current frame to frame (M*N-(M-1)) (if there are 3 frames per object, then the second one will appear in the 4th frame ← I hate math )
change to layer 1
insert layer keyframe
# Now move the layer away.
set current frame to frame N+ M (frames between different meshes)
change to layer 2
insert layer keyframe for layer 2 at frame N+1
I can’t get the syntax to work correctly; can someone show me the appropriate code for inserting layer keyframes, moving to another layer, and going to another frame. I really appreciate your help!