2 Replies Latest reply on Oct 4, 2011 6:16 AM by JohnDevlon

    [CS5][JS] Create Spot color with Pantone lib as colour mode

    JohnDevlon Level 1

      Hi,

       

      For creating new spot colors in a file, I use this piece of code:

      var Values = new Array(0, 53, 100, 0);

      app.activeDocument.colors.add({model:ColorModel.SPOT, space:ColorSpace.CMYK, colorValue:Values, name:"PANTONE Yellow C"});

       

      After checking the new color in the document by clicking on the swatch,  the properties are the ones used in the script but not what I want.

       

      Is it possible to create a new SPOT color where the "colour mode" is a Pantone Library and the color values is one of the items of the library?

       

      Kind regards

       

      John