|
| Position and Point of Interest of Parented Camera
| | | |
Position and Point of Interest of Parented Camera
by Lloyd Alvarez
on
May 8, 2008 at 6:58:33 pm
Hey Guys,
For some reason my head is not processing layer transforms properly today..
I am trying to have a second camera have the real world position and poi of a parented camera so that I can export it to a 3D app.
Thanks in advance,
Lloyd
http://aescripts.com
Respond to this post Return to posts index
| | | | |
| | | | Re: Position and Point of Interest of Parented Camera by Dan Ebberts on May 8, 2008 at 9:08:52 pm
Lloyd,
I think it's like this:
//Camera Position:
C = thisComp.layer("Camera 1");
C.toWorld([0,0,0])
// POI:
C = thisComp.layer("Camera 1");
if (C.hasParent){
C.parent.toWorld(C.transform.pointOfInterest);
}else{
C.transform.pointOfInterest;
}
Dan
Respond to this post Return to posts index | | | | |
|
|
|