Skip to content

Instantly share code, notes, and snippets.

@justintaylor-dev
Created March 31, 2022 15:08
Show Gist options
  • Save justintaylor-dev/eceb52d8ff696c42004b9444484ada96 to your computer and use it in GitHub Desktop.
Save justintaylor-dev/eceb52d8ff696c42004b9444484ada96 to your computer and use it in GitHub Desktop.
ignore-parent-scale #code_aeft
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