Skip to content

Instantly share code, notes, and snippets.

@justintaylor-dev
Last active June 27, 2019 18:34
Show Gist options
  • Save justintaylor-dev/d7048628930ce959f89cfda76b3bcc4e to your computer and use it in GitHub Desktop.
Save justintaylor-dev/d7048628930ce959f89cfda76b3bcc4e to your computer and use it in GitHub Desktop.
Invert Selection #code_aeft
// Inverts selected layers in the Active Comp
var active = app.project.activeItem;
if (active && active instanceof CompItem) {
var layerLen = active.layers.length;
for (var i = 1; i < layerLen + 1; i++)
active.layers[i].selected = active.layers[i].selected === false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment