Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expression to make objects to move out at random from source object in center of screen

  • Expression to make objects to move out at random from source object in center of screen

    Posted by David Mathis on December 12, 2013 at 3:04 pm

    Looking to create an expression that would make a circles go out in different directions from a circle in the middle of the screen. I saw a video on something similar to this one time but can not remember the expression that was used. I do remember, however, that a wiggle expression was involved.

    Also, what books are recommended for learning expressions? Some stuff I understand other stuff keeps slamming me into a brick wall.

    George Goodman replied 12 years, 7 months ago 3 Members · 2 Replies
  • 2 Replies
  • Kevin Camp

    December 12, 2013 at 6:26 pm

    try this:

    target = thisComp.layer('center layer'); // your center circle layer
    area = [800,800]; // value in pixels
    dur = 3; // value in seconds

    seedRandom(index,true);
    p1 = target.position;
    p2 = random(p1-area,p1+area)
    linear(time-inPoint, 0, dur, p1, p2)

    Kevin Camp
    Senior Designer
    KCPQ, KMYQ & KRCW

  • George Goodman

    December 13, 2013 at 4:58 am

    If your circle is a shape layer, you could just use wiggle transform. All you would need to do is duplicate it a bunch of times and add the wiggle transformer to the bottom of all the shapes. Take wiggles per second to 0 and then keyframe the position under it’s transform from 0,0 to 3049,4256 … or whatever last value works in getting them all off screen.

    “|_ (°_0) _|”

    Sincerely,

    George

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