Scale 3D-layer depending on distances from camera

If you apply this expression to the Scale parameter of the 3D layer, then when you move away from the camera or zoom, the layer will automatically increase, visually without changing its size.

cam = thisComp.activeCamera;
distance = length(sub(position, cam.position));
scale * distance / cam.zoom;
Recommended Posts

Start typing and press Enter to search