Jump to content
Sign in to follow this  
scottgordon

AE - animate camera along a path???

Recommended Posts

Okay, I know this shouldn't be this difficult. I want to animate a camera down a gently winding road in zspace, as if it is the POV of a driver. The problem is that the basic things I'm trying, pasting a path in the the camera position property, etc is not working right...suggestions? thanks!

Share this post


Link to post
Share on other sites

Not sure what you are having difficulty with. Pasting should work, but will obviously be linked to XY position. nothing you can't fix with a little expression to swap values:

 

X=value[0];

Y=0;

Z=value[1];

 

[X,Y,Z]

Share this post


Link to post
Share on other sites

Okay, I know this shouldn't be this difficult. I want to animate a camera down a gently winding road in zspace, as if it is the POV of a driver. The problem is that the basic things I'm trying, pasting a path in the the camera position property, etc is not working right...suggestions? thanks!

 

You can animate the cam from top view with a few keys

then control its position and POI using valueAtTime.

 

First only animate the cam position roughly,

make a Null layer (here I named it "CamControl")

and add EffectControl slider

that goes from 0 to 1 in small increments.

Name it (here I called it "Move")

 

Then on the cams Position add:

move=thisComp.layer("CamControl").effect("Move")("Slider");
ctime=thisComp.duration;
thisLayer.position.valueAtTime(move*ctime);

 

This will control the position along the animation path.

Then for Point of Interest add:

move=thisComp.layer("CamControl").effect("Move")("Slider");
ctime=thisComp.duration;
thisLayer.position.valueAtTime((move*ctime)+ctime*0.01);

this will point the camera 1 percent ahead of time.

 

Cheers

Lennart

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...