box = thisComp.layer("3DLayer"); // Replace with the name of your 3D layer boxWorldPos = box.toWorld(box.anchorPoint); boxWorldPos;
ConvertToWorld Expression
Practical use case
Aligning a spotlight’s position to the world space anchor point of another 3D object.
Check out similar expressions
Transformation
Snap to Layer or Comp Corners
Ideal for neatly lining up text, graphics, or logos without manually dragging them around. You can make lower-thirds stay aligned to a box, keep captions centered under a video, or build layouts that stay tidy no matter how your layers change.
Use this when you’re replacing footage or images in a template and want them to instantly scale to the right size without guessing. It’s great for social-media versions (square, vertical, or widescreen), product videos, or automated projects where every image needs to fit just right every time.