Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Random time playback

  • Kalleheikki Kannisto

    April 9, 2016 at 11:03 am

    Try this.

    You’ll need to add a slider control in CompA. This is used to randomize the clip, which would otherwise always be the same.

    This plays a random one of the clips and then stops.

    seqDur = 2;
    compDur = Math.floor((outPoint-inPoint)/seqDur)*seqDur;
    clips = compDur/seqDur;
    seed = effect("Slider Control")("Slider");
    seedRandom(seed,true);
    clipStart = Math.floor(random(clips))*seqDur;
    clipEnd = clipStart+seqDur-thisComp.frameDuration;
    linear (time, 0, 2-thisComp.frameDuration, clipStart, clipEnd)

  • Ilya Sire

    April 9, 2016 at 5:07 pm

    Sweet! Thank you so much for the solution. It works just fine.

    Tq10x 🙂
    Sire

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