ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

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

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Shai Benshoshan
Please advice : how to convert point of interest of a camera to 2D on-screen X/ Y points, including the zoom of the camera ?
on Dec 27, 2018 at 1:51:07 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


Return to posts index

Filip Vandueren
Re: Please advice : how to convert point of interest of a camera to 2D on-screen X/ Y points, including the zoom of the camera ?
on Jan 6, 2019 at 7:29:06 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;
}




Return to posts index

Shai Benshoshan
Re: Please advice : how to convert point of interest of a camera to 2D on-screen X/ Y points, including the zoom of the camera ?
on Jan 7, 2019 at 8:41:17 am

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


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]