iterative particle emitter generator

I’m making a script to duplicate a particle emitter recursively and adding an offset to the start and endtime (and eventually modify location also).
(for stuff like footfalls [dust rising at each step])

anyway, I’ve started reserching the “effect” class and i made a small script just to edit the start and end values. here it is:


##this is a test script made by Jesse McMillan, I don't care about rights
##because it's just a test of the api... use it as you will.


# Windows version 
import Blender
import sys

from Blender import *

listeffects = Blender.Effect.Get()
print listeffects

########################
# in future check type #
########################


#get effect and start and end time
partEff = listeffects[0]

end = partEff.getEndTime()
start = partEff.getStartTime()

#get offset... right now just set at 20 frames
frameOffset = 20

#calculate

end = end + frameOffset
start = start + frameOffset

print "end
"
print end
print "start
"
print start

partEff.setEnd(end)
partEff.setSta(start)



##next version: will duplicate object first...

my problem: blender says (when I execute the script):

"‘blender effect’ object contains no attribute ‘setEnd’

what am I doing wrong?

ps. some referance:
http://members.iinet.net.au/~cpbarton/ideasman/BPY_API/Effect.Effect-class.html#setEnd

oh, and features I’m going to include:
basics:
>input number of duplicates, time offset, location offset, name of particle …object
>change other values incrementally (possibly all values eventually)

sorry for the long post

I might be wrong on this but setEnd() might onlt refer to newly created effects? So maybe you’'ll have to copy over the particle effects onto a new one and then do setEnd()