12 Replies Latest reply on Mar 22, 2017 6:02 PM by Qwertyfly...

    Remove Fill on paths not quite working

    StrongBeaver Level 2

      Why aren't all the paths that may have a fill on them, within the layer by name "Hairs_TopNose" not being iterated though and having, if exists their fill removed ?

       

      var curDoc = app.activeDocument;
      var lyr = curDoc.layers.getByName("Hairs_TopNose");
      var pathss = lyr.hasSelectedArtwork;
      var pth = lyr.pathItems.length;
      var patth = lyr.pathItem;
      if (pathss==1) {
          for(pth=0;pth<patth.filled=false;i++)
          }else{
              alert("Fill on Paths Removed");
              };