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

Script for Create Shapes from Vector Layer

New Here ,
Jan 31, 2023 Jan 31, 2023

Copy link to clipboard

Copied

Good Day All!

I`m trying to write a small script that will create shapes from vector layers, but I cannot seem to find right command for it. Assuming layer is already selected I tried different variations I`ve looked throught internet and this forum

 

1. app.executeCommand(app.findMenuCommandId('Create Shapes from Vector Layer'));

2. app.executeCommand(3781) - plus  I dont really like this option as with each new version these numbers are getting changed sometimes (from what I undersood)

3. I`ve tried few variations of code related to ADBE Vector Shape - Group but none of them seemed to work for me. I believe solution is so close but I just can`t get to it.
4. Some old variations of code found on this forum that do not seem to work anymore


Hoping for your help! 
Many thanks!

TOPICS
Scripting

Views

163

Translate

Translate

Report

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 Expert ,
Jan 31, 2023 Jan 31, 2023

Copy link to clipboard

Copied

Your #1 works fine for me with the vector layer selected.

Votes

Translate

Translate

Report

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
New Here ,
Feb 01, 2023 Feb 01, 2023

Copy link to clipboard

Copied

This is some magic as when I posted the question it didn`t work for me, but now it does 🙂
Thanks Dan!

Also what do you think would be good way to identify inside converted layer what is an artboard from illustrator? In order to delete it, even a hint of how to figure out what group or merge path is an artboard.

 

Many thanks!

Votes

Translate

Translate

Report

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 Expert ,
Feb 01, 2023 Feb 01, 2023

Copy link to clipboard

Copied

Sorry, I don't know enough about Illustrator docs to be of any help with that.

Votes

Translate

Translate

Report

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
New Here ,
Feb 01, 2023 Feb 01, 2023

Copy link to clipboard

Copied

LATEST

Thanks anyway!

Votes

Translate

Translate

Report

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