Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions random time stretch / remapping

  • random time stretch / remapping

    Posted by Steve Renard on February 15, 2012 at 3:19 pm

    Hi all – I found a helpful post from Dan Ebberts from a few years ago to achieve random time stretching on a layer, but I have been trying to figure out a way to extend it a bit. I have a bunch of layers that are all running at the same speed. I can apply the code below (from Dan’s preview post) and make them run at different speeds, but I would also like to offset their start point, and this code seems to override the start point for the layers. Is there a way that I can have this begin to take effect only after the layer start point?

    Thanks for your help!

    minSpeed = 85;
    maxSpeed = 115;
    seedRandom(index,true);
    time*(random(minSpeed,maxSpeed)/100)

    ————
    Steve Renard
    647-406-7991
    st***@*********rd.com

    Steve Renard replied 14 years, 3 months ago 1 Member · 1 Reply
  • 1 Reply
  • Steve Renard

    February 15, 2012 at 3:23 pm

    I should add I’ve tried using an if/else statement, as below, and it just jumps to whatever the value would be at the layer in point, rather than proceeding smoothly from 0 at the layer in point.

    minSpeed = 85;
    maxSpeed = 115;
    seedRandom(index,true);

    if (time < inPoint) {
    stretchSpeed = 0;
    }
    else {
    stretchSpeed = time*(random(minSpeed,maxSpeed)/100);
    }

    stretchSpeed

    ————
    Steve Renard
    647-406-7991
    steve@steverenard.com

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy