Last active
June 27, 2019 18:34
-
-
Save justintaylor-dev/d7048628930ce959f89cfda76b3bcc4e to your computer and use it in GitHub Desktop.
Invert Selection #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
// 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