Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Play first 10 frames of a precomp

  • Play first 10 frames of a precomp

    Posted by Darryl Torke on March 15, 2014 at 4:05 pm

    I have a multiple precomps inside a main composition and would like each of the precomps to do the following behaviour:

    -play the first 10 frames of the precomp.
    -then display and hold a random frame between frames 11-30 of the precomp

    For practical purposes the first 10 frames is a flower animation opening up, but then I would like to design different random configurations of the flowers as the last frame.

    Is this possible using time-remap and expressions?

    Thank you for your time.

    Darryl Torke replied 12 years, 2 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    March 15, 2014 at 4:28 pm

    This should work. Note that the way you described it, frame 10 will never play (first 10 frames would be 0 through 9). I’m not sure if that was intentional.


    if (timeToFrames(time) < 10){
    value;
    }else{
    seedRandom(index,true);
    framesToTime(Math.floor(random(11,30)));
    }

    Dan

  • Darryl Torke

    March 15, 2014 at 4:38 pm

    Ah, thanks this works! You were right it was not intentional to exclude frame 10, thanks for mentioning that or I would of been stupefied.

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