Forum Replies Created

  • Thomas Junk

    December 6, 2009 at 11:31 am in reply to: Referencing a parent of a comp

    I reworked this a little: I needed layers to orient to a parent’s composition camera.
    This is what I got working with your help. Thank you!!

    „parent“ ist the name of the Composition containing the Camera called „CameraMain“

    delta = toWorld(anchorPoint) - comp("Parent").layer("CameraMain").toWorld([0,0,0]);
    radiansToDegrees(Math.atan2(delta[0],delta[2]))

    demodern | digital design studio
    Cologne, Germany

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