2 Replies Latest reply on Aug 29, 2015 3:20 AM by hamdifem

    object style change color

    hamdifem

      How can I change the fill color of the object style

      Where can I make mistakes

       

      if(app.activeDocument.objectStyleGroups.itemByName("myGrup").objectStyles.itemByName("myObj01").properties.fillColor == "None"){
         app.activeDocument.objectStyleGroups.itemByName("myGrup").objectStyles.itemByName("myObj01").properties.fillColor = "Black";
      
      
      } else {app.activeDocument.objectStyleGroups.itemByName("myGrup").objectStyles.itemByName("myObj01").properties.fillColor  = "None";
      }