Mailing List AE-List@media-motion.tv ? Message #47239
From: Dan Ebberts <debberts@comcast.net>
Subject: Re: [AE] speed change expression
Date: Sun, 6 Jan 2013 14:38:19 -0800
To: After Effects Mail List <AE-List@media-motion.tv>
If you add a slider to the clip and use linear keyframes (important) to set the speeds (in percent), this time remapping expression should work:

spd = effect("Slider Control")("Slider");
n = spd.numKeys;
if (n > 0 && spd.key(1).time < time){
 accum = spd.key(1).value*(spd.key(1).time - inPoint);
 for (i = 2; i <= n; i++){
   if (spd.key(i).time > time) break;
   k1 = spd.key(i-1);
   k2 = spd.key(i);
   accum += (k1.value + k2.value)*(k2.time - k1.time)/2;
 }
 accum += (spd.value + spd.key(i-1).value)*(time - spd.key(i-1).time)/2;
}else{
 accum = spd.value*(time - inPoint);
}
value + accum/100

If you can't use linear keyframes, you're probably stuck with something like the slower method described here:

http://www.motionscript.com/articles/speed-control.html#frame-by-frame

Dan

-----Original Message----- From: henry birdseye
Sent: Sunday, January 06, 2013 2:27 PM
To: After Effects Mail List
Subject: Re: [AE] speed change expression

Thanks, Jack, but that's the thing... I don't want to have to cut up the
clips, just keyframe their varying speeds.


On 1/6/2013 5:07 PM, Jack Tunnicliffe wrote:
Not sure I'm understanding you completely, you can choose to just open time stretch and enter any percentage speed change. If this happens several times on the clip just cut it up and apply your new percentage to each clip.

Jack Tunnicliffe
Java Post Production
www.javapost.ca



On Jan 6, 2013, at 4:03 PM, henry birdseye <henry.birdseye@gmail.com> wrote:

I'm looking for an expression that would let me change the playback speed of a clip with a percentage instead of keyframed values of Time Remap. Has anyone done this before?

Tx in advance.

HB


+---End of message---+
To unsubscribe send any message to <ae-list-off@media-motion.tv>

+---End of message---+
To unsubscribe send any message to <ae-list-off@media-motion.tv>


+---End of message---+
To unsubscribe send any message to <ae-list-off@media-motion.tv>
 
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to ListMaster