View all expressions
Transformation

Maintain Scale While Parented Expression

Ensures a layer’s scale stays consistent even when its parent layer’s scale changes.


s = [];
ps = parent.transform.scale.value;
for (i = 0; i < ps.length; i++){
s[i] = value[i]*100/ps[i];
}
s

Maintain Scale While Parented Expression

Practical use case

Perfect for maintaining the original size of elements within a hierarchy, like text or UI components.

Check out similar expressions

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

a mesh of elegant lines transparent image