Copy link to clipboard
Copied
Can someone help me modify this to be the silhouette option in Illustrator?
var traceobj = selection[0].trace();
var opt = traceobj.tracing.tracingOptions;
opt.cornerAngle = 90;
opt.fills = true;
opt.ignoreWhite = true;
opt.maxColors = 32;
opt.maxStrokeWeight = 0;
opt.minArea = 5;
opt.minStrokeLength = 3;
opt.outputToSwatches = true;
opt.palette = '';
opt.pathFitting = true;
opt.preprocessBlur = 0;
opt.strokes = false;
// threshold = 120 // BW only
opt.tracingMode = TracingModeType.TRACINGMODECOLOR
traceobj.tracing.tracingOptions = opt;
var traceobj = selection[0].trace();
var opt = traceobj.tracing.tracingOptions;
opt.loadFromPreset("Silhouettes");
Copy link to clipboard
Copied
var traceobj = selection[0].trace();
var opt = traceobj.tracing.tracingOptions;
opt.loadFromPreset("Silhouettes");
Copy link to clipboard
Copied
so what would the whole script look like?
thanks in advance!
Copy link to clipboard
Copied
That's the whole script, using the "Silhouettes" preset. The options can subsequently be customised, but that defeats the purpose of using a factory preset. Do you really want the "Silhouettes" preset? Or do you want to change, for example, just the mode to black and white?
Copy link to clipboard
Copied
let me test this one its runniing in the middle of an action ! thank you