Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions How to offset rotation on several trees?

  • How to offset rotation on several trees?

    Posted by Daniel Haskett on April 14, 2010 at 4:59 pm

    Hi there

    I was just wondering if anyone has any idea how I would show various trees swaying in the wind? I want it to look more natural so was thinking they should sway at different times from each other. I was thinking if I rotate one and then link the others rotation with an expression whip. But how can I offset the time at which they rotate?

    This is probably a really basic question, but any help would be much appreciated!

    Thanks

    Dan

    Daniel Haskett replied 16 years ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    April 15, 2010 at 12:54 am

    Maybe something like this:

    m = thisComp.layer(“master tree”);
    minDelay = .1;
    maxDelay = .5;
    seedRandom(index,true);
    delay = random(minDelay,maxDelay)
    m.transform.rotation.valueAtTime(time – delay)

    Dan

  • Daniel Haskett

    April 16, 2010 at 2:24 pm

    Thanks Dan, that seems to work a treat. Really appreciate your help!

    Dan

    Animator/Illustrator
    https://www.danhaskett.co.uk

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