I need target position of my camera

   1748   1   1
User Avatar
Member
407 posts
Joined: Aug. 2015
Offline
Hello;

I'm trying to convert Houdini's camera transformation to After Effects camera transformation.
So I need to retrieve the Target position of Houdini's camera.
Any idea?




Thanks.

Attachments:
1.jpg (692.8 KB)

Masoud Saadatmand (MSDVFX)
User Avatar
Member
7771 posts
Joined: Sept. 2011
Offline
Transform a point with the desired distance in front of the camera as the z value by the camera's matrix.

Pt (target position)
P (z point {0,0,-z})
M camera matrix

Pt = P * M

In vex, you can do something like this:
(but vex is not the only way)

string camera = chs('camera');
matrix xform = optransform(camera);
@P = set(0,0,-ch('distance'));
@P *= xform;
  • Quick Links