8 Replies Latest reply on Feb 22, 2017 6:32 AM by bird_de

    Change and clear ObjectStyle

    bird_de Level 1

      I have two questions:

       

      1)

      How can I assign a particular object format (for example, "Format1") to a selected object frame?

       

      Reading is like this:

      MyObject = app.activeDocument.selection[0].appliedObjectStyle.name;

      But how do I now assign a different format?

       

      2)

      An object is assigned a specific object format (e.g., "Format1").

      How can I "remove" the objectstyle from the object (ie set it back to [empty])?