Particle system frame_start can't set larger than 200

Hello.
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.
From the
http://www.blender.org/documentation/blender_python_api_2_57_release/bpy.types.ParticleSettings.html
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.

Have a look at your render settings and increase the “Frame Range” “End” so that it is at least what you are trying to set in your script. Default is 250… at least I think that’s what is causing your limitation.

Frame range end did not fix it.
What I was doing wrong was that I had to set first the frame_end.Simply reversing the order of the two lines solved the problem.
Original code


...........
set1.frame_start = 220
set1.frame_end = 300
..........

Working code


...........
set1.frame_end = 300
set1.frame_start = 220
..........