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
Auto-Scaling Text Layer with Width Constraints
Perfect for auto-scaling subtitles, banners, or text that needs to adapt to varying character counts without exceeding a defined width, ensuring consistency in responsive layouts.
Perfect for automating text-based workflows where layers have structured names like “Title - Subtitle” or “Section: Topic,” allowing you to use each part independently.