Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gordielachance/5eadcc60b7bb4b25f8276d7df14980d7 to your computer and use it in GitHub Desktop.
Save gordielachance/5eadcc60b7bb4b25f8276d7df14980d7 to your computer and use it in GitHub Desktop.
AE expression : check for backfacing (2D layer)
var rot = transform.xRotation;
var flipAngle = 180;
var flips = Math.round(rot / flipAngle);
var isFront = (flips%2) ? false : true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment