Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Problem using toComp() with Point of Interest

  • Problem using toComp() with Point of Interest

    Posted by Lord Scales on June 19, 2007 at 9:16 pm

    Hi!
    I’ve got some trouble to make the 3D Cordinate of an Spot Light POI a 2D Cordinate with toComp ().
    I just want to connect a Lens Flare to the position of my Spot Light POI.
    I have got the following in Flare Center:

    L = thisComp.layer (“Spot”); L.toComp ([0, 0, 0])

    Doesn’t works. I tried before to take a vector of position and POI and covert them, I tried to Convert the mean of position and POI and then convert, and I tried really lot of expressions more.
    If anyone could help me, I’d thank a lot!

    Lord Scales replied 18 years, 10 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    June 19, 2007 at 9:43 pm

    There’s probably a simpler way to do it, but this seems to work:

    L = thisComp.layer(“Spot”);
    fromComp(L.toComp(L.fromWorld(L.pointOfInterest)))

    Dan

  • Lord Scales

    June 19, 2007 at 10:16 pm

    Thanks! That is perfect!

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