Skip to content

Instantly share code, notes, and snippets.

@justintaylor-dev
Last active June 27, 2019 18:39
Show Gist options
  • Save justintaylor-dev/14533325b2de1df4a20e797e94bfca31 to your computer and use it in GitHub Desktop.
Save justintaylor-dev/14533325b2de1df4a20e797e94bfca31 to your computer and use it in GitHub Desktop.
Select Unparented #code_aeft
// Selects all Unparented Layers
var layers = app.project.activeItem.layers;
var num = app.project.activeItem.layers.length;
for(var i = 0; i < num;i++){
var layer = layers[i+1];
layer.parent === null ? layer.selected = true: null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment