Hi Bob,
At this point, I am displaying image by image (removing layers between times) and saving a single image at a time with index=0. However, the behavior you describe was similar to a problem I had when trying to use a nextStep() or takeStepForward(). I only have the remnants of the code around, I decided to use the single image, capture, clear the panel, display the next image approach. Here is the snippet I still have in my code. I have not used the following code since early January of this year.
Joleen
[code] fname_template = '{}{}-{:04d}.jpg'
anim = panel[0].getAnimation() times = anim.getTimes() steps = anim.getNumSteps()
label='Full Disk ({} um) CONUS ({} um) Meso ({} um)'.format((fd[0]['satband-band-label'].split())[0], (conus[0]['satband-band-label'].split())[0],(meso1[0]['satband-band-label'].split())[0])
for x in range(steps): idx = anim.getCurrent()
fname = fname_template.format(fdFileH,parms['day'],idx) timestep = str(times[x+1])
formatStuff=[Matte( background='black', top=90, ), TextOverlay( text=label, place="UM,0,30", anchor="UM", fontSize="24", color="yellow", ), TextOverlay( text=str(timestep), place="UM,0,60", anchor="UM", fontSize="24", color="yellow", ), ]
#print 'idx=%s timestep=%s fname=%s' % (idx, timestep, fname) panel[0].captureImage(filename=fname, formatting=formatStuff) if (maxidx < idx): maxidx=idx anim.takeStepForward()
[/code]
|