Skip navigation
Currently Being Moderated

Typename of the filled color.

Jul 18, 2012 1:52 AM

Hi all,


I am trying to use the property "typename" with the fillcolor. I am using following statement:


grp.compoundPathItems.index(j+1).pathItems.index(0).fillColor.typenam e


It'll give error i.e. access of undefined property typename.


Is there any way of finding the typename of fillcolor?


Actually, I want to get the type of fillcolor used in pathitem, i.e. is it "GradientColor", "PatternColor" or "SpotColor".

can anyone help me with this?



  • Currently Being Moderated
    Jul 18, 2012 4:02 AM   in reply to AI_learner

    var doc = app.activeDocument;

    $.writeln( doc.groupItems[0].compoundPathItems[0].pathItems[0].fillColor.typenam e );

    Mark as:
  • Currently Being Moderated
    Jul 18, 2012 7:47 AM   in reply to AI_learner

    I think you keep mixing ActionScript syntax with ExtendScript ( what users in this forum use )…

    The latter we can help with but I only just started learning ActionScript myself… ( to create propper panels )

    Help use help you… Which are you using and what are you trying to do?

    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