Expression Copied to Clipboard! πŸ—‚
← Back to Expressions

Ignore Parent Scale - After Effects Expression

Maintain scale of a layer when parented to another layer. Apply to scale property of child layer.

Ignore Parent Scale

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

‍

Copied to Clipboard!
s = [];
parentScale = parent.transform.scale.value;
for (i = 0; i < parentScale.length; i++){
s[i] = (parentScale[i]== 0) ? 0 : value[i]*100/parentScale[i];
}
s

More expressions you might like...

Credit