: How to get an object style in Illustrator scripting? I'm writing a script to automate scene states. I using graphic styles to change appearance. How do I get object's graphicStyle? Is there
I'm writing a script to automate scene states. I using graphic styles to change appearance. How do I get object's graphicStyle? Is there a way to have a collection of objects of chosen style?
More posts by @Eichhorn212
1 Comments
Sorted by latest first Latest Oldest Best
I don't know what you make with all objects, but if you wuold select all item with same graphic style you can use app.executeMenuCommand('Find Style menu item'); script after selection active on one object with choosen style.
For example:
choose 1 object and launch this script:
app.executeMenuCommand('Find Style menu item');
for(var i=0;i<app.selection.length;i++){
app.selection[i].doSomething;
}
Hope it's work for you.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.