Skip to main content
Participant
March 18, 2022
Answered

Illustrator Script to move artwork from every artboard to new corresponding layers

  • March 18, 2022
  • 1 reply
  • 1376 views

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!

 

This topic has been closed for replies.
Correct answer Kurt Gold

There is a beautiful script provided by Alexander Ladygin that will do exactly what you are going to do.

 

https://github.com/alexander-ladygin/illustrator-scripts#artboarditemsmovetonewlayer

 

1 reply

Kurt Gold
Community Expert
Kurt GoldCommunity ExpertCorrect answer
Community Expert
March 18, 2022

There is a beautiful script provided by Alexander Ladygin that will do exactly what you are going to do.

 

https://github.com/alexander-ladygin/illustrator-scripts#artboarditemsmovetonewlayer

 

Participant
March 21, 2022

Wow, this is precisely what I was looking for!
Thank you so much for your response