Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects controlling time remap with an expression.

  • controlling time remap with an expression.

    Posted by Jakob Thommessen on March 27, 2006 at 10:01 am

    Hi,
    I am trying to get a film to start at a random frame and then play through.
    If I put a random script on the time remap, afx will generate a random frame on everey frame (not playing it through).

    I could do it maually, but it would be nice to duplicate the layer many times and have them all play from different frames.

    Jakob.

    Jakob Thommessen replied 20 years, 1 month ago 3 Members · 4 Replies
  • 4 Replies
  • Mylenium

    March 27, 2006 at 11:12 am

    Try to use the Time Displacement effect and randomize its Offset parameter. Use something like that:

    seedRandom(index,true);
    my_offset=Math.round(random(-100,100));

    [my_offset]

    This way all you need to do is clone the layer without adjusting in and out points and it will still play differently for every clip.

    Mylenium

    [Pour Myl

  • Jakob Thommessen

    March 27, 2006 at 12:26 pm

    hi Mylenium,
    thanks for taking the time!

    I am not so great with scripting, but I tried to paste in your script and i get a 0 value for every frame, so: no movement.

    I tried:

    valueAtTime(time+random(1,2))

    but again: different framenumber every time in no order.

    I have moved the time remap values manually to get my effect and it is no big deal, but it would offcourse be nice to get to the bottom of how to do it with a script.

  • Dan Ebberts

    March 27, 2006 at 2:15 pm

    Try this expression for time remapping:

    seedRandom(index,true);
    time + random(outPoint)

    Dan

  • Jakob Thommessen

    March 27, 2006 at 2:51 pm

    Thank you very much Dan!
    It worked perfect, it even loops!

    Jakob

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