Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects velocity expression leaves falling problem

  • velocity expression leaves falling problem

    Posted by John Brown on June 8, 2005 at 10:53 am

    hello forum
    I’m animating some leaves falling. They are linked to branches via parenting so they grow as the branches grow. I have them rotating as they fall but need to wiggle there anchor points to give them a swirling motion. I originally wrote this
    \
    if (position[1] < 500 ) wiggle(thisComp.layer("ca08").scale[0],thisComp.layer("ca08").scale[1]) else anchorPoint \\ so that when the leaves hit the floor, they would stop swirling, because of parenting all 100 leaves have differring base positions, nightmare. If I replaced // position[1] < 500// with //velocity < 0 // then they would cease swirling when stationary. Or maybe I could calculate their global or comp position , is there a way of doing this for 2d objects? Thanks John Brown The Popular Society

    Xstream replied 18 years, 7 months ago 3 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    June 8, 2005 at 1:16 pm

    I’m not sure if these are what you’re after, but

    toWorld(anchorPoint)[1]

    gives you the global y position and

    position.speed

    gives you the scalar value of the velocity

    Dan

  • John Brown

    June 8, 2005 at 3:52 pm

    Thanks for that, calculating the speed worked, the leaves anchor points moved as the velocity increased .The only problem is my “else anchorPoint” line which makes the leaves “snap” back to their normal position, But this gives it a traditional “Lotto Reiniger” feel anyway,
    thankyou very much Dan.
    john

  • Xstream

    October 21, 2007 at 1:51 pm

    So what was the final outcome of this?

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