Created
March 31, 2022 15:08
-
-
Save justintaylor-dev/eceb52d8ff696c42004b9444484ada96 to your computer and use it in GitHub Desktop.
ignore-parent-scale #code_aeft
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment