Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expression for Object Postion that is parented to a controller?

  • Expression for Object Postion that is parented to a controller?

    Posted by Jordan Montreuil on August 24, 2008 at 7:46 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?

    Jordan Montreuil replied 17 years, 9 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    August 24, 2008 at 10:10 pm

    Try this:

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

    Dan

  • Jordan Montreuil

    August 24, 2008 at 10:11 pm

    Dan, I love you.

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

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