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!
Copy link to clipboard
Copied
Your #1 works fine for me with the vector layer selected.
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!
Copy link to clipboard
Copied
Sorry, I don't know enough about Illustrator docs to be of any help with that.
Copy link to clipboard
Copied
Thanks anyway!