Page 1 of 1

getting past the 32K AE limit

Posted: October 18th, 2005, 8:52 am
by lloydalvarez
I wrote and expression using the Offset plugin to imitate a film projector:

Code: Select all

fps= 24;
t=time * fps;
move= t * 486;
[effect("Offset")("Shift Center To")[0],effect("Offset")("Shift Center To")[1] + move]
This expression works great until the Offset value gets past 32,999 and then it stops working. At 24fps this happens at around 2.5 seconds and i need my projector to work for about 11 seconds..

So now i am thinking i need to build some kind of conditional to keep reseting the values back down to values below 32K, but this kind of math is beyond my scope of knowledge. Anybody want to help me out?

Thanks,

Lloyd

Posted: October 18th, 2005, 12:59 pm
by goldomega
Try this expression. Your value should offset itself by the height of your comp, so it should look like a continuous value stream, but within the confines of your comp height.

Offset:

fps= 24;
t=time * fps;
move= t * thisComp.height;
reset=Math.floor(move/thisComp.height);
moveReset=move-reset*thisComp.height;

[thisProperty[0],thisProperty[1] + moveReset]

Posted: October 18th, 2005, 1:10 pm
by lloydalvarez
awesome.. that did the trick!

thanks,

Lloyd