Skip to main content
elotromiqui
Participant
Jul 4, 2018 6:02 PM UTC
Question

Duplicate illustrator layer with scripts

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?

2 replies

pixxxelschubser
Community Expert
Community Expert
Jul 4, 2018 7:19 PM UTC

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

Translate
Participating Frequently
May 20, 2025 11:36 PM UTC

Lost Link 🤔 🤔

Translate