Skip navigation
Currently Being Moderated

How to find out that an art item has spot color using script?

Jul 4, 2012 7:03 AM

Hi all,

 

I have a number of art items on a document, some of them are filled with spot colors and some of them are with process color.
Is there any method by which I can find out which color type(spot or process) is applied to the selected art item?

 

Thanx in advance...

 
Replies
  • Currently Being Moderated
    Jul 4, 2012 11:21 AM   in reply to AI_learner
    var idoc = app.activeDocument;
    var ipath = idoc.pathItems[0];
    icolor = ipath.fillColor;
    alert(icolor.typename);
    
     
    |
    Mark as:
  • Currently Being Moderated
    Jul 5, 2012 2:24 PM   in reply to AI_learner

    what's that? actionscript?

     

    did you try the sample I posted? try to duplicate the same sample in your version (as?), to see if it works.

     

    I think the problem is here

    var colorValue:com.adobe.illustrator.Color;

     

    can you run your code without declaring the colorValue first? comment it out to see if it works.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points