Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE AFTER EFFECTS: HomeForumBasicsExpressionsTutorialsPodcastsMotion GraphicsTrainingCinema 4DFAQ

Linking CC sphere to camera motion

Cow Forums : Adobe After Effects Expressions
VIEW POSTS   •   ADD A NEW POST   •   SEARCH   •   CHANGE FORUM
Respond to this post   •   Return to posts index   •   Read entire thread


Linking CC sphere to camera motion
by Steve Dorsey on Jan 12, 2009 at 8:59:35 pm



lookAt(thisComp.activeCamera.position, position)[0]
lookAt(thisComp.activeCamera.position, position)[1]
lookAt(thisComp.activeCamera.position, position)[2]


Okay, please bear with me here. I'm (clearly) not an expressions guy, but I need to get this done asap.

I have a comp where I'm using CC sphere to "be" inside a spherical background. I want the background to move when the camera moves.

I posted to the adobe forums, and I got back a reference to a YouTube movie

http://www.adobeforums.com/webx/.59b77e3d/1

That script got me half way there.

My camera is parented to a null which is animated. The camera actually has no keyframes or expressions applied to it.

The current expression is applied to the CCsphere X Y and Z rotation attributes and links to the camera position:

lookAt(thisComp.activeCamera.position, position)[0]
lookAt(thisComp.activeCamera.position, position)[1]
lookAt(thisComp.activeCamera.position, position)[2]

This is great, but I need it to be linked to the rotation of the camera's null, not the position of the camera. I'm trying to figure this out with no success. Any ideas?

Thanks

----------S




Respond to this post   •   Return to posts index   •   Read entire thread


Current Message Thread:




Note: If you are a registered user please click here to login before posting.

Your post will not be accepted if your name and email address are not registered in our database. Click here if you do not have an account.

Name
E-Mail Address
Subject
E-Mail me when someone responds
Just This Message   Entire Thread   None  

Message:



Note: The following are HTML characters and may cause parts of your post to disappear if not used correctly: < > &
To include any portion of the post in your response, highlight the desired text and hit the "Q" key. Read more...



Please post Expressions Code in the box below:


Add your message signature


 


Note: By clicking "Post Direct" button above, you are agreeing to the Creative Cow's Code of Conduct.



FORUMSTUTORIALSMAGAZINETRAININGVIDEOS - REELSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]