• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

Community Expert ,
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;

Amybeth M
ACI G7 Certified Expert
TOPICS
Scripting

Views

351

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

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

Votes

Translate

Translate
Adobe
Guide ,
Apr 23, 2021 Apr 23, 2021

Copy link to clipboard

Copied

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

Votes

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
Community Expert ,
Apr 23, 2021 Apr 23, 2021

Copy link to clipboard

Copied

so what would the whole script look like?

thanks in advance!

Amybeth M
ACI G7 Certified Expert

Votes

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
Guide ,
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?

Votes

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
Community Expert ,
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 

 

Amybeth M
ACI G7 Certified Expert

Votes

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