3D Parallax

Simulates depth by creating a parallax effect in 3D space relative to the active camera.

Code

depth = 500;
cam = thisComp.activeCamera;
if (cam) {
  dist = length(position, cam.position);
  parallax = depth / (dist + depth);
  value * parallax;
} else {
  value;
}
3Dparallaxcamera

How to Use

Attach this expression to properties like Position in 3D layers. It creates a subtle parallax effect relative to your active camera. Ensure your composition includes a camera layer.