Need to modify this Illustrator script to be the silhouette option in Illustrator

Explorer ,
Apr 23, 2021 Apr 23, 2021

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;

TOPICS
Scripting

Views

128

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct Answer

Enthusiast , Apr 23, 2021 Apr 23, 2021
var traceobj = selection[0].trace(); var opt = traceobj.tracing.tracingOptions; opt.loadFromPreset("Silhouettes");

Likes

Translate

Translate
Enthusiast ,
Apr 23, 2021 Apr 23, 2021

Copy link to clipboard

Copied

var traceobj = selection[0].trace();
var opt = traceobj.tracing.tracingOptions;
opt.loadFromPreset("Silhouettes");

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 23, 2021 Apr 23, 2021

Copy link to clipboard

Copied

so what would the whole script look like?

thanks in advance!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Apr 23, 2021 Apr 23, 2021

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?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 23, 2021 Apr 23, 2021

Copy link to clipboard

Copied

LATEST

let me test this one its runniing in the middle of an action ! thank you 

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines