Skip to main content
elotromiqui
Participant
July 4, 2018
Question

Duplicate illustrator layer with scripts

  • July 4, 2018
  • 1 reply
  • 2447 views

Hey! I'm new to scripting, and I'm trying to find a solution to what should be such a simple problem.

I'm trying to duplicate a layer with a script, but as of now, it seems there's no an easy way. Somebody suggested that I should create an action that duplicates a layer, and then call that action from my code. But I can't seem to get an action to duplicate a layer, it just doesn't register it.

So, does anybody have an already working code for something like this, if not, can somebody point me in the right direction to code this myself?

1 reply

pixxxelschubser
Community Expert
Community Expert
July 4, 2018

Hi eggylegs​,

the quick way (but the harder and rocky one) --> Is it possible to use scripting to duplicate a layer?

the easier way (but much more slower) --> Duplicate layer just above the source layer by script

Hve fun

Participating Frequently
May 20, 2025

Lost Link 🤔 🤔