Creative COW SIGN IN & SETTINGS :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE AFTER EFFECTS: ForumAE BasicsAE ExpressionsTutorialsArticlesPodcastsMotion GraphicsTrainingCinema 4D

Position and Point of Interest of Parented Camera

Cow Forums : Adobe After Effects Expressions
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

Re: Position and Point of Interest of Parented Camera
by Lloyd Alvarez on May 8, 2008 at 10:42:57 pm

That's does it! Thanks Dan!

-Lloyd

http://aescripts.com

Respond to this post     Return to posts index

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   NEXT THREAD >>


FORUMSLIBRARYPODCASTSBLOGSMAGAZINESERVICESNEWSLETTERSNEWSSTOREEVENTS

© CreativeCOW.net All rights are reserved.

[Top]