Delete strokes with JFSL?
Continuing on my JSFL journey...
i have a layer that contains strokes and fills. When i loop through the layer's contents, it says there's only one element: a single shape. Fine - so it's treating all the artwork like one shape.
i'd like to delete the strokes only, and leave the fills.
If i select everything, and then manually click the strikethrough stroke in the swatch panel, the strokes all disappear. i thought i could do something similar in JSFL, so i tried this (after selecting everything in the layer):
var dom = an.getDocumentDOM();
stroke = dom.getCustomStroke("selection");
stroke.style = "noStroke";
dom.setCustomStroke(stroke);
i've tried it with both "selection" and "toolbar" but neither approach works.
Is there another/better way to isolate just the strokes on this layer and delete them? Can i detect them by colour, or some other parameter?
Thanks!
- Ryan