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

    Remove Fill on paths not quite working

    StrongBeaver Level 3

      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) {
              alert("Fill on Paths Removed");