2 Replies Latest reply on Jan 9, 2013 8:05 PM by Bill joy

    how Apply Paper Swatch color on page

    Bill joy Level 1

      Hi Experts

      I want to apply Paper Swatch color on page.

      I try this to set Paper Swatch color but not sucess.

       

      #target indesign

      var myDocument = app.documents.add();

      var myPages = myDocument.pages;

      var myPage = myPages.item(0);

      var swatchclr=app.activeDocument.swatches.itemByName("Paper").properties = {space:ColorSpace.RGB, model:ColorModel.PROCESS};

      swatchclr.colorValue=[255,150,0];

       

      There is no change in Paper Swatch color value.

      How apply this color on page ?

       

      Thanks.