4 Replies Latest reply on May 10, 2012 1:43 AM by AI_learner

    Get to know which one is active Stroke or Fill for the document.

    AI_learner Level 1

      Is there any way to find out which one, between stroke or fill, is active for a particular document using illustrator scripting?

       

      I have to apply color on the selected object accordingly.
      If fill is active then i use obj.fill.color = 0xff00ff; and,

      if stroke is active then i use obj.stroke.color = 0xff00ff;

       

      But i am not able to find which one is active..

      Any help would be appreciated...

      Thanx...