3 Replies Latest reply on Aug 18, 2013 10:18 PM by W_J_T

    check pantone color

    surendarappu

      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

        • 1. Re: check pantone color
          W_J_T Level 4

          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);
          }
          
          
          
          • 2. Re: check pantone color
            surendarappu Level 1

            HI  W_j_T

            Thank you

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

            what is different between Spot and PatternColor?

            • 3. Re: check pantone color
              W_J_T Level 4

              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?