Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Triggering random animaton

  • Triggering random animaton

    Posted by Moog Gravett on April 29, 2010 at 8:48 am

    Hi folks,

    I’m trying to get a visual up and running but could use some expression help to save a huge amount of time over the hand animating alternative.

    I have a little looping animation of a circle. It starts from a dot and sits there for a while then grows in size before shrinking once again to a dot.

    I need to place these dots evenly spaced on a line (and possibly later in a grid) and have them trigger from random frames, so I get a random growing scenario.

    So…
    1) how to place multiple instances of a comp evenly along a line

    2) how to place multiple instances of a comp within a grid

    3) how to trigger the comp to start from random frames.

    thanks so much for all your sage-like advice,

    moog

    +++++++++++
    Lead Visual Note Tracker
    Zoe Mode plc
    http://www.Zoemode.com

    http://www.Peculiana.com
    +++++++++++

    Moog Gravett replied 16 years ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    April 29, 2010 at 1:42 pm

    This should give you a basic grid layout:

    origin = [25,25]; // upper left corner
    horizontalSpacing = 50;
    verticalSpacing = 50;
    numCols = 10; // number of columns in each row
    col = (index-1)%numCols;
    row = Math.floor((index-1)/numCols);
    [col*horizontalSpacing,row*verticalSpacing]

    And this time remapping expression should give you a random start:

    maxDelay = 5; // max delay in seconds
    seedRandom(index,true);
    delay = random(maxDelay);
    Math.max(time-delay,0)

    Dan

  • Moog Gravett

    April 29, 2010 at 1:44 pm

    briiliant, I’ll give that a try,

    thanks Dan 🙂

    +++++++++++
    Lead Visual Note Tracker
    Zoe Mode plc
    http://www.Zoemode.com

    http://www.Peculiana.com
    +++++++++++

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