/ Id-Extras Forum / Object Styles and Object Layer Options / Reply To: Object Styles and Object Layer Options

#6397
Ariel
Participant

Yes, there is, but I would set up an object find query (just as one would do with the UI) to find all such objects based on object style.
Something like this:

Code:
app.findObjectPreferences = null;
app.findObjectPreferences.appliedObjectStyles = myDoc.objectStyles.itemByName(“YourStyleNameGoesHere”);
app.findChangeObjectOptions.objectType = ObjectTypes.ALL_FRAMES_TYPE;
f = document.findObject();