Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Randomly trigger animation?

  • Randomly trigger animation?

    Posted by Shawn Marshall on November 23, 2014 at 10:12 pm

    I’m working on these complex transitions in which I’ve masked an HD video clip into 40 triangular facets with the anchor point adjusted on each so that when rotated 180° they reveal another piece of video behind them and on the other sides of the facets. It’s taking a lot of complex parenting and pre comps to make it work.

    I’m keyframing the x rotation for each of the 40 layers (15 frames, easy-eased), then manually distributing the frames by dragging them around to create a sort of random cascade.

    I’m wondering whether there’s a way to make those rotations trigger randomly between a set time frame. So, like, over the course of two seconds I want all 40 layers to rotate starting a different times within that timespan. Then by changing a random seed or something I could quickly get a different order of cascade.

    Can this be done? If so, any thoughts as to how I’d approach that? I’m so-so on the expressions front.

    Thank you.

    Shawn Marshall
    Marshall Arts Motion Graphics

    Shawn Marshall replied 11 years, 9 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    November 23, 2014 at 10:29 pm

    It will probably be something like this:

    tStart = 2; // earliest possible transiton start time
    seedRandom(index,true);
    myStart = tStart + random(2);
    ease(time,myStart,myStart+framesToTime(15),0,180)

    which should start each transition somewhere between tStart (2 seconds in this example) and tStart+2.

    Dan

  • Shawn Marshall

    November 24, 2014 at 3:11 am

    Hi Dan:

    Thanks for the quick reply. I’ll play around with this.

    Take care.

    Shawn

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