1 Reply Latest reply on Dec 14, 2015 3:59 AM by t23gagzg

    How to get an object style as script?

    t23gagzg Level 1

      I have a pretty complex object style (including drop shadow, inner glow and outer glow) which I want to apply via script in any document, how can I get this object style as script i.e:

          objSt1.properties = {
                  name:"my first objectstyle",
                  strokeWeight: 3,
                  strokeColor:doc.swatches.item(7),
                  strokeTint: 23,
                  bottomLeftCornerOption:CornerOptions.FANCY_CORNER,
                  transparencySettings:{
                          blendingSettings:{
                              opacity:50,
                              blendMode: BlendMode.COLOR
      
      
                              }
                          }
                  };
      
      
      
      

       

      Here's it the indd and idml with the object styles

      Dropbox - objectstyle.zip