L = thisLayer;s = transform.scale.value;while (L.hasParent){ L = L.parent; for (i = 0; i < s.length; i++) s[i] *= 100/L.transform.scale.value[i]}s
β
L = thisLayer; s = transform.scale.value; while (L.hasParent){ L = L.parent; for (i = 0; i < s.length; i++) s[i] *= 100/L.transform.scale.value[i] } s
Maintain stroke width while scaling layers. Apply to stroke width property
Scale a layer to fit a pixel width. Apply to scale property
Apply this expression to the property you want to control (like opacity) and make sure it is referencing the correct control layer.
Get Β After Effects tips & tricksdelivered to your inbox