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

constant distance between camera and a layer

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


constant distance between camera and a layer
by Mike Johnson on Oct 31, 2008 at 2:46:12 pm

I've found a few answers that come close to my problem, but I'm not good enough with expressions to adapt them to my needs...

I have about 20 layers randomly distributed in 3d space. I used a variation of Dan's "how to build a better camera man" code from the pan, tilt, focus, zoom composition. In addition, I put a one liner on the camera's Position that links it to the Point of Interest, adding 200 to the z. My intent was to always have the camera a set distance from the layer on interest.

This works fine when all the photos are on the orientation (namely "0" rotation). However, it falls apart when I want to introduce some random orientation to the photos. When the camera points to a photo, I want it to be facing straight on to it, not at an angle.

I think I need to do something with the target.toWorld opeation, but I'm not sure. Everything I've found seems to deal with a camera that is sitting still and the layers are moving in front of it.

Any thoughts or comments of ridicule?

Mike


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


Current Message Thread:


Related Tags:
DI



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]