Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Please advice : how to convert point of interest of a camera to 2D on-screen X/ Y points, including the zoom of the camera ?

  • Please advice : how to convert point of interest of a camera to 2D on-screen X/ Y points, including the zoom of the camera ?

    Posted by Shai Benshoshan on December 27, 2018 at 1:51 pm

    this is not giving me the result I need:

    delta = toComp(thisComp.layer(“thisComp.layer(“top_cam”).transform.pointOfInterest) +thisComp.layer(“Camera 2”).cameraOption.zoom- thisComp.activeCamera.toWorld([0,0,0]);

    thanks

    Shai Benshoshan replied 7 years, 4 months ago 2 Members · 2 Replies
  • 2 Replies
  • Filip Vandueren

    January 6, 2019 at 7:29 pm

    Hi there,

    This seems to work for me; even if the other camera is zooming:

    cam=thisComp.layer("top_cam");
    if (cam.hasParent) {
    cam_poi = cam.parent.toWorld(cam.pointOfInterest);
    } else {
    cam_poi = cam.pointOfInterest;
    }

  • Shai Benshoshan

    January 7, 2019 at 8:41 am

    Thank You!
    already got this working my self
    but going to try yours for sure:-)

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