Mobile app version of vmapp.org
Login or Join
Eichhorn212

: 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

@Eichhorn212

Posted in: #IllustratorScripting

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Eichhorn212

1 Comments

Sorted by latest first Latest Oldest Best

 

@Kristi927

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme