/ Id-Extras Forum / Object Styles and Object Layer Options / Reply To: Object Styles and Object Layer Options
May 24, 2021 at 2:21 pm
#6397
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();
app.findObjectPreferences.appliedObjectStyles = myDoc.objectStyles.itemByName(“YourStyleNameGoesHere”);
app.findChangeObjectOptions.objectType = ObjectTypes.ALL_FRAMES_TYPE;
f = document.findObject();