Activity › Forums › Adobe After Effects › How to automatically select every Nth layer?
-
How to automatically select every Nth layer?
Posted by Marina Tsaplina on August 11, 2008 at 7:40 pmHello,
i have over 150 ai layers- is there a way to select every 5th one, or every 4th one, or every 20th one, etc?thank you.
Ht Davis replied 6 years ago 5 Members · 5 Replies -
5 Replies
-
Lloyd Alvarez
August 11, 2008 at 11:27 pmHi Marina,
I wrote a script that will do that. You can get the script here:
https://aescripts.com/scripts/NthLayerSelector.jsx.zip
The script will select every Nth layer from within a selection of layers or if no layers are selected it will select every Nth layer from the whole comp.
To use scripts copy the file into the Scripts folder in your AE folder, restart AE and run the script from the File->Scripts menu.
-Lloyd
-
Serge Hamad
August 12, 2008 at 4:58 amLIoyd! Thanks a bunch for this one;-)
always be a fan of your great stuff;-)
Salut.
SergeInvigorator/Proanimator Training Review:
https://library.creativecow.net/articles/murphy_kurt/invigorator_tr_rev.phpInvigorator/Proanimator Training: https://library.creativecow.net/articles/hamad_serge/invig_training.php
-
Marina Tsaplina
August 12, 2008 at 2:15 pmWOW thank you! i guess you NEED to learn how to script if you really want to MASTER after effects….
thanks so much.
-
Adam Power
January 23, 2014 at 4:57 pmHi,
Along similar lines, how would you select layer 1 of 4, then layer 2 of 4, 3 of 4 etc.?
Thanks
Adam -
Ht Davis
April 23, 2020 at 9:39 pmOld thread but here goes…
The Select Every Nth will do one thing really, but has two pieces to the action.
Piece 1:
Get Selection\Comp, put in variable “SELECTION”
Piece 2:
Process every Nth layer within SELECTION by Selecting it, or probably more accurately, looping through all layers one at a time and testing the loop variable for equivalency to the Nth term before altering those that DONT match to be Unselected. Really a great tool.
If you want to select every of this, then every of that, etc, you can copy the programming into another script, and give it a number instead of an Nth term. You’ll have to do this multiple times in your script, and change the given Nth term, then add what you want to process. You can give it a Comp to start with and input your desired effect or process, but you’ll have to apply your effect selected item using another loop to go through all the selected items, and then deselect them before you start another Nth term loop.
Reply to this Discussion! Login or Sign Up