Page 1 of 1

Independent camera XYZ animation channels

Posted: Sat Jul 23, 2011 4:07 pm
by ponysmasher
I find that having the X, Y and Z animation of the camera in only one keyframe is often less than optimal so I whipped up a quick script to be able to do smooth camera moves.

Download here

It's a layer script, so you embed it in a layer and then you control the camera using that layer.
Since the XYZ of layers are also in only one keyframe I remapped the controls like this:

The X position of the layer sets the X position of the camera.
The Shear X of the layer sets the Y position of the camera.
The scale X of the layer sets the Z position of the camera.

I reversed the x position number so that moving the mouse left for example, moves the camera left. Felt more natural.

I also made a script that always sets the camera to the same XYZ of a layer so you could for example use follow path with the camera.

Download here

EDIT: Here's a quick video http://www.youtube.com/watch?v=s6QGigcviX4

Posted: Sat Jul 23, 2011 5:25 pm
by funksmaname
great! I do this in after FX by using XYZ seperation filter on a null and parenting the camera to it... i'm sure this will be very useful :)

Thanks for sharing.

Posted: Sat Jul 23, 2011 6:22 pm
by GCharb
Yes, thanks!

Posted: Tue Jul 26, 2011 4:23 am
by uddhava
I tried this and it works! Could be useful for exact camera moves. Thanks.

I also tried the bind camera to layer script, but when I used it everything
disappears. Seems like it could be very useful though.

I hope telling these problems is helpful.

udd

Posted: Tue Jul 26, 2011 4:37 am
by ponysmasher
uddhava wrote: I also tried the bind camera to layer script, but when I used it everything
disappears. Seems like it could be very useful though.

I hope telling these problems is helpful.

udd
The reason why everything seems to disappear is probably because the layer you bind the camera to is at 0 Z depth (the default for layers). So the camera jumps to the same position as your layers and you can only see behind them.
If you move the layer back things should show up again (the default Z position for the camera is 1.7321)

Posted: Tue Jul 26, 2011 5:59 am
by uddhava
I did as you suggested and it reappears, but if I click on another layer it again disappears and has to be reset. If I click on a different tool everything disappears.

Does this need a new layer for the script only?