OK, so here is the latest. This has become more of a scripting questions. When I run the trace manually, I get the outline path the way I want it:
I can unite this. However, when I run the same settings in my script, I am capturing the outer group, and the white space is expanding (note how small the artboard is in the image above).
Here are the final settings I am using (copied from the good preset above):
var topts = {
tracingColorTypeValue: TracingColorType.TRACINGFULLCOLOR,
palette: "NoLib",
colorGroup: "All",
tracingColors: 30,
colorFidelity: 100,
threshold: 128,
grayLevels: 50,
pathFidelity: 50,
cornerFidelity: 75,
noiseFidelity: 25,
tracingMethod: TracingMethodType.TRACINGMETHODABUTTING,
fills: true,
strokes: false,
maxStrokeWeight: 10,
snapCurveToLines: true,
ignoreWhite: false,
}
Here's the preset:
... View more