View all expressions
Transformation

Maintain Stroke Width in 3D Space

Keeps stroke width visually consistent regardless of the layer’s distance from the camera in 3D space. Note: Requires an active Camera layer for proper functionality.


nominalDist = 200;
d = length (thisComp.layer("Camera 1").toWorld([0,0,0]),toWorld(anchorPoint));
value*(d/nominalDist)

Maintain Stroke Width in 3D Space

Practical use case

Great for 3D projects where stroke width consistency is critical, such as motion graphics with line animations.

Check out similar expressions

Data-driven video workflows for After Effects are easier with Plainly.

a mesh of elegant lines transparent image