I noticed that I can’t set the start_frame for the particle system to be more that 200.
See sample code below.
import bpy bpy.ops.mesh.primitive_plane_add(view_align=False, enter_editmode=False, location=(0, 0, 0), rotation=(0, 0, 0), layers=([True]+[False]*19)) emitter = bpy.context.object emitter.name = "particle_plane" #Add particle system bpy.ops.object.particle_system_add() psys1 = emitter.particle_systems[-1] psys1.name = 'dots' #Emision set1 = psys1.settings set1.count = 1000 set1.frame_start = 120 set1.frame_end = 300 set1.lifetime = 100
Whenever I set the set1.frame_start = 201 or higher the particle system start frame is always 200 in the panel. I can change that value in the panel to whatever I like but not with the script.
I tried two different builds of blender 2.57 same problem.
frame_start can take values from -300000 to + 300000.
What am I doing wrong?
In general I need this to set up a loop to create multiple particle systems equally spaced in time. Like the example below creates 10 identical particle systems with shifted by 50 frames from one another.
for i in range(10): #Add particle system bpy.ops.object.particle_system_add() psys1 = emitter.particle_systems[-1] psys1.name = 'dots'+str(i) #Emission set1 = psys1.settings set1.name = 'dotsSettings'+str(i) set1.count = 1000 set1.frame_start = 0+i*50 set1.frame_end = 10+i*50 set1.lifetime = 100
Any help is greatly appreciated.