Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Duplicate illustrator layer with scripts

Community Beginner ,
Jul 04, 2018 Jul 04, 2018

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?

TOPICS
Scripting
2.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Jul 04, 2018 Jul 04, 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 20, 2025 May 20, 2025
LATEST

Lost Link 🤔

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines