Skip to content

TracingOptions

image.tracing.tracingOptions

A set of options used in converting raster art to vector art by tracing.


image.tracing.tracingOptions.cornerAngle

The sharpness, in degrees of a turn in the original image that is considered a corner in the tracing result path.

Range: 0 to 180

Number (double)


image.tracing.tracingOptions.fills

If true, trace with fills. At least one of fills or strokes must be true.

Boolean


image.tracing.tracingOptions.ignoreWhite

If true, ignores white fill color.

Boolean


image.tracing.tracingOptions.livePaintOutput

If true, result is LivePaint art. If false, it is classic art.

Boolean


image.tracing.tracingOptions.maxColors

The maximum number of colors allowed for automatic palette generation.

Used only if tracingMode is TracingModeType.TRACINGMODECOLOR or TracingModeType.TRACINGMODEGRAY.

Range: 2 to 256

Number (long)


image.tracing.tracingOptions.maxStrokeWeight

The maximum stroke weight, when strokes is true.

Range: 0.01 to 100.0

Number (double)


image.tracing.tracingOptions.minArea

The smallest feature, in square pixels, that is traced.

For example, if it is 4, a feature of 2 pixels wide by 2 pixels high is traced.

Number (long)


image.tracing.tracingOptions.minStrokeLength

The minimum length in pixels of features in the original image that can be stroked, when strokes is true.

Smaller features are omitted.

Range: 0.0 to 200.0.

Default: 20.0

Number (double)


image.tracing.tracingOptions.outputToSwatches

If true, named colors (swatches) are generated for each new color created by the tracing result.

Used only if tracingMode is TracingModeType.TRACINGMODECOLOR or TracingModeType.TRACINGMODEGRAY.

Boolean


image.tracing.tracingOptions.palette

The name of a color palette to use for tracing. If the empty string, use the automatic palette.

Used only if tracingMode is TracingModeType.TRACINGMODECOLOR or TracingModeType.TRACINGMODEGRAY.

String


image.tracing.tracingOptions.parent

The object’s container.

Object; read-only.


image.tracing.tracingOptions.pathFitting

The distance between the traced shape and the original pixel shape. Lower values create a tighter path fitting.

Higher values create a looser path fitting.

Range: 0.0 to 10.0

Number (double)


image.tracing.tracingOptions.preprocessBlur

The amount of blur used during preprocessing, in pixels. Blurring helps reduce small artifacts and smooth jagged edges in the tracing result.

Range: 0.0 to 2.0

Number (double)


image.tracing.tracingOptions.preset

The name of a preset file containing these options.

String; read-only.


image.tracing.tracingOptions.resample

If true, resample when tracing. (This setting is not captured in a preset file.)

Always true when the raster source art is placed or linked.

Boolean


image.tracing.tracingOptions.resampleResolution

The resolution to use when resampling in pixels per inch (ppi).

Lower resolution increases the speed of the tracing operation. (This setting is not captured in a preset file.)

Number (double)


image.tracing.tracingOptions.strokes

If true, trace with strokes. At least one of fills or strokes must be true.

Used only if tracingMode is TracingModeType.TRACINGMODEBLACKANDWHITE.

Boolean


image.tracing.tracingOptions.threshold

The threshold value of black-and-white tracing. All pixels with a grayscale value greater than this are converted to black.

Used only if tracingMode is TracingModeType.TRACINGMODEBLACKANDWHITE.

Range: 0 to 255

Number (long)


image.tracing.tracingOptions.tracingMode

The color mode for tracing.

TracingModeType


image.tracing.tracingOptions.typename

Read-only. The class name of the object.

String


image.tracing.tracingOptions.viewRaster

The view for previews of the raster image. (This setting is not captured in a preset file.)

ViewRasterType


image.tracing.tracingOptions.viewVector

The view for previews of the vector result. (This setting is not captured in a preset file.)

ViewVectorType


image.tracing.tracingOptions.loadFromPreset(parameter)

Loads a set of options from the specified preset, as found in the Application.tracingPresetList array.

ParameterTypeDescription
presetNameStringPreset name to load

Boolean


image.tracing.tracingOptions.storeToPreset(parameter)

Saves this set of options in the specified preset.

Use a name found in the Application.tracingPresetList array, or a new name to create a new preset.

For an existing preset, overwrites an unlocked preset and returns true.

Returns false if the preset is locked.

ParameterTypeDescription
presetNameStringPreset name to save as

Boolean