Skip to main content
August 17, 2013
Answered

check pantone color

  • August 17, 2013
  • 1 reply
  • 956 views

Hi

any one give me a syntax to check pantone color

eg (list.fillColor=="[CMYKColor]")

like that how to find pantone color

and how to get the name of the pantone used

Thank you

Appu

This topic has been closed for replies.
Correct answer W_J_T

surendarappu wrote:

syntax to check pantone color eg (list.fillColor=="[CMYKColor]") like that how to find pantone color and how to get the name of the pantone used

if (sel.fillColor == "[SpotColor]") {

// or...

// if (sel.fillColor.typename == "SpotColor") {

    alert(sel.fillColor.spot.name);

}

1 reply

W_J_TCorrect answer
Inspiring
August 17, 2013

surendarappu wrote:

syntax to check pantone color eg (list.fillColor=="[CMYKColor]") like that how to find pantone color and how to get the name of the pantone used

if (sel.fillColor == "[SpotColor]") {

// or...

// if (sel.fillColor.typename == "SpotColor") {

    alert(sel.fillColor.spot.name);

}

August 17, 2013

HI  W_j_T

Thank you

i have a doubt can i use "[PatternColor]" instead of SpotColor

what is different between Spot and PatternColor?

Inspiring
August 19, 2013

surendarappu wrote:

i have a doubt can i use "[PatternColor]" instead of SpotColor

Unless I am misunderstanding your question, as mentioned previously by others and myself, have you checked and used the documentation? These types of basic questions are readily answered in the scripting reference documentation. (CMYKColor, SpotColor, RGBColor, GrayColor, LabColor, PatternColor, GradientColor, etc.,)

surendarappu wrote:

what is different between Spot and PatternColor?

In what regard, besides the obvious?