getting past the 32K AE limit

Moderators: Disciple, zlovatt

Post Reply
User avatar
lloydalvarez
Enhancement master
Posts: 460
Joined: June 17th, 2004, 9:27 am
Location: New York City, NY
Contact:

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
goldomega
Posts: 9
Joined: August 12th, 2005, 8:54 am
Location: Rochester, NH

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]
User avatar
lloydalvarez
Enhancement master
Posts: 460
Joined: June 17th, 2004, 9:27 am
Location: New York City, NY
Contact:

awesome.. that did the trick!

thanks,

Lloyd
Post Reply