Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Parenting / Rotation question

  • Parenting / Rotation question

    Posted by David Fleury on March 22, 2017 at 8:01 pm

    Ok Lets see if I can describe this. I need a way to keep the last link in a parenting chain to keep its original rotation as its parents spin around a circular path. I am attaching a pic that will hopefully make it more clear what I am after. If there is a way to do this without expressions that I am missing please let me know!

    Thanks in advance.
    Dave

    David Fleury replied 9 years, 1 month ago 2 Members · 3 Replies
  • 3 Replies
  • David Fleury

    March 22, 2017 at 8:02 pm

  • Dan Ebberts

    March 22, 2017 at 8:12 pm

    Try this:


    L = thisLayer;
    accum = 0;
    while (L.hasParent){
    accum += L.parent.rotation;
    L = L.parent;
    }
    value - accum

    Dan

  • David Fleury

    March 22, 2017 at 8:21 pm

    Brilliant! REALLY appreciate your help!

    Dave

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