ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Parenting / Rotation question

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
David Fleury
Parenting / Rotation question
on Mar 22, 2017 at 8:01:58 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


Return to posts index

David Fleury
Re: Parenting / Rotation question
on Mar 22, 2017 at 8:02:57 pm



Return to posts index

Dan Ebberts
Re: Parenting / Rotation question
on Mar 22, 2017 at 8:12:33 pm

Try this:


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



Dan



Return to posts index


David Fleury
Re: Parenting / Rotation question
on Mar 22, 2017 at 8:21:31 pm

Brilliant! REALLY appreciate your help!

Dave


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]