I'm trying to create a plugin which will animate onover and return to frame 1 onout. Also, the animation must only run once i.e. frames 1 to 40 and stop.
I can do this by using the standard krpano animate code and changing the 0 for 39 as follows:
<action name="animate">
inc(frame,1,get(frames),39);
mul(ypos,frame,frameheight);
txtadd(crop,'0|',get(ypos),'|',get(framewidth),'|',get(frameheight));
delayedcall(0.06, animate() );
</action>
My problem is, I don't know how to get it to return to frame 1 onout so that it is ready for the next mouseover action.
Any ideas anyone?
Thanks
Kev.