Cam-Distance
Posted: October 4th, 2011, 2:46 am
Hi there,
Im using this script on a psd file i imported:
cam = this_comp.active_camera;
distance = length(sub(position , cam.position));
s = distance / cam.zoom;
mul(scale, s)
it should maintain the layer size in the comp no matter where i put it in z position. Not working for me: should i apply it to the layer position or scale property?
Anyone who knows that script can give me some pointers?
thanks
Im using this script on a psd file i imported:
cam = this_comp.active_camera;
distance = length(sub(position , cam.position));
s = distance / cam.zoom;
mul(scale, s)
it should maintain the layer size in the comp no matter where i put it in z position. Not working for me: should i apply it to the layer position or scale property?
Anyone who knows that script can give me some pointers?
thanks