Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE AFTER EFFECTS: HomeForumBasicsExpressionsTutorialsPodcastsMotion GraphicsTrainingCinema 4DFAQ

Expression for Object Postion that is parented to a controller?

Cow Forums : Adobe After Effects Expressions

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>
Expression for Object Postion that is parented to a controller?
by Jordan Montreuil on Aug 24, 2008 at 7:46:42 pm

I have a light that is parented to a Null object. The null is keyframed to rotate so that the light is swinging along the axis of the null's rotation.

Now, I am trying to use an expression to link the light position value of a CC Glass effect to the position of the light. Unfortunately, the light is techinically stationary because the light is only moving via the null's rotation.

How can I link the CC Glass's light position to the actual light in the comp? I tried doing it by hand but I can't match the light's position because of the easing of the keyframes. Is there an expression that points to an object's relative position rather than its numerical position that I would normally pick whip to?



Respond to this post   •   Return to posts index

Re: Expression for Object Postion that is parented to a controller?
by Dan Ebberts on Aug 24, 2008 at 10:10:19 pm

Try this:


L = thisComp.layer("Light 1");
fromComp(L.toComp([0,0,0]))


Dan



Respond to this post   •   Return to posts index

Re: Expression for Object Postion that is parented to a controller?
by Jordan Montreuil on Aug 24, 2008 at 10:11:53 pm

Dan, I love you.


PS. This is the part that I couldn't figure out: [0,0,0]



Respond to this post   •   Return to posts index

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>


FORUMSTUTORIALSMAGAZINETRAININGVIDEOS - REELSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]