Quantcast
Channel: Adobe Community : Popular Discussions - After Effects Expressions
Viewing all articles
Browse latest Browse all 47983

Depth of Field expression

$
0
0

Hi

 

i've got a comp with 70 3d layers.They are all arranged in a grid in the x+z axes .Distance between each layer is 3600Px.

The camera is parented to a null called"Cam_control".Basically,the camera flyies now to each 3d layer(which is contolled by the"Cam control" null)

and animates around each layer(Camera's position,rotation keyframed).

 

ok,i'd like now that the focus point of the cam is always on the "Cam_control"Null.How can i do this?Focus distance would then be the distance between Cam_control null and the cam's pos.

Problem is that the Null's position refers to the center of the comp so that the expression length(null's position,cam's position) doesn't work.

 

it would be nice now to have an expression that calculates the distance between the cam and this "cam-Contol"null.So that wherever "cam-control"is,this point will be in focus.

any help appreciated.


Viewing all articles
Browse latest Browse all 47983

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>