Illustrator Script to move artwork from every artboard to new corresponding layers
I'm the design side on a motion design pipeline. At the end of each project I'm required to move the artwork of each artboard to it's own layer with the corresponding screen number (layer "screen 01", layer "screen 02" and so on). I wish to automate this process.
Ideally, the script would:
- create and name the layers, based on the number of artboards and it's index;
- move the artwork of each artboard to it's corresponding layer.
I've seen scripts moving objects to specific layers, however most are dealing with selected artboard or selected items, which would not be the case here, since running the script for each individual artboard would make the whole thing kinda pointless.
I'm pretty sure this is doable, however my knowledge on scripting is pretty limited to say the least, so any help would be greatly appreciated!
