Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions toWorld expression stops working as expected when layer is made a child

  • toWorld expression stops working as expected when layer is made a child

    Posted by Riccardo Sinti on October 21, 2020 at 11:58 pm

    This is probably easy,

    I’m using the expression

    L = thisComp.layer(“POI”);
    L.toWorld(L.anchorPoint)

    on a spot light’s point of interest to follow a null “POI” which is the child of another layer.

    works fine until I make the spot light the child of another layer.

    What do I need to do to make it work?

    Thanks!

    Riccardo Sinti replied 5 years, 6 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    October 22, 2020 at 6:19 am

    Try it this way:

    L = thisComp.layer("POI");

    parent.fromWorld(L.toWorld(L.anchorPoint))

  • Riccardo Sinti

    October 22, 2020 at 2:05 pm

    Thanks Dan,

    Perfect ans as I suspected not complicated at all.

    I haven’t posted here in years and it is so great that this community and you especially are still here to help us all out. Thanks so much!

    -Ric

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