Skip to content

Instantly share code, notes, and snippets.

@animoplex
Created February 28, 2019 15:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save animoplex/3da1a03101a56d1d17240ce047376168 to your computer and use it in GitHub Desktop.
Save animoplex/3da1a03101a56d1d17240ce047376168 to your computer and use it in GitHub Desktop.
Alternating Outputs - After Effects Expression by Animoplex
// Alternating Outputs - Created by Animoplex: www.animoplex.com
// Output changes between "Off" and "On" (or any output of your choice) every 10 frames
f = 10; // frame interval
int = framesToTime(f);
num = Math.floor( time / int );
if (( num % 2 ) == 0 ) {
"Off" // default output
} else {
"On" // alternate output
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment