FORUMS: list search recent posts

lookAt and parenting

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Jan Sickinger
lookAt and parenting
on Mar 5, 2011 at 10:55:54 am

hello forum.

i'm working on a little after effects character rig. to rig the eyes, i used a 3d lookAt expression. so i rigged the iris layer to the HELPER_Iris layer. all objects are 3d layers. that works all fine, except i parent the HELPER_Iris layer to the higher HELPER_ALL layer. when i do so, the Iris layer flips around and do not work properly anymore.

has anyone an idea to this problem? thanks very much!

jan

link: 1709_eyerig.png.zip

LookAt = "HELPER_Iris"
look = look_at(position, thisComp.layer("HELPER_Iris").position);
[look[0], look[1], look[2]]


Return to posts index

Dan Ebberts
Re: lookAt and parenting
on Mar 5, 2011 at 5:03:36 pm

Try it this way:

L = thisComp.layer("HELPER_Iris");
lookAt(L.toWorld(L.anchorPoint),toWorld(anchorPoint));


Dan



Return to posts index

Jan Sickinger
Re: lookAt and parenting
on Mar 5, 2011 at 6:17:15 pm

yeah! works great.
thank you very much! jan


Return to posts index

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