Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions pushing many objects with expressions

  • pushing many objects with expressions

    Posted by Seth Taylor on February 13, 2009 at 9:14 pm

    I have a bulldozer that needs to push a bunch of different objects to the right side of the screen. I think if I can set up an expression like:

    if _x.object1 > the _x of bulldozer layer do nothing
    but if _x.object 1 <= _x of bulldozer then _x.object = x of bulldozer but I'm not sure how to format this or what else I need to do to get it working properly. Can you help me with this? I have about 100 objects to push 🙂 so it's a bit laborious to keyframe. Thanks, Seth Taylor

    Seth Taylor replied 17 years, 6 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    February 13, 2009 at 11:52 pm

    Try this:

    L = thisComp.layer(“bulldozer”);
    x = Math.max(L.transform.position[0] + L.width/2 + width/2, transform.position[0]);
    [x,value[1]]

    Dan

  • Seth Taylor

    February 14, 2009 at 12:01 am

    you probably get this a lot…
    Thanks! It worked! This will now save me a lot of time.

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