Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions How to find the empty obj. coordinates w/ displacement and rotation animations

  • How to find the empty obj. coordinates w/ displacement and rotation animations

  • Taku Wilson

    July 27, 2022 at 4:16 pm

    I would like to know how to find the coordinates of an empty object parented with displacement and rotation animations in a composition.

    The small circle is the parent of the empty object. The coordinates of the empty object are relative to the coordinates of the small circle. The value remains unchanged. I want to add a write on effect, and I need to find out the coordinates of the empty object that changes during composition.

    The ultimate goal is to make a Spirograph animation, which is just one step away

  • Dan Ebberts

    July 27, 2022 at 4:26 pm

    When you say “empty object” are you talking about a null layer? If so, then I think you just need something like this:

    L = thisComp.layer("Null 1");
    L.toComp(L.anchorPoint)
  • Taku Wilson

    July 27, 2022 at 4:54 pm

    Thank you so much for your help, it’s amazing

  • Taku Wilson

    July 28, 2022 at 2:42 pm

    I found that this expression can also be written like this:

    var parentLayer = thisComp.layer(“smallCircle”);

    var childLayerPosition = thisComp.layer(“childNull”)(“Transform”)(“Position”);

    parentLayer.toComp(childLayerPosition)

  • Dan Ebberts

    July 28, 2022 at 3:56 pm

    Or like this:

    L = thisComp.layer("childNull");
    L.parent.toComp(L.position)
Viewing 1 - 5 of 5 posts

Log in to reply.

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