Question
How to Create a LiveTrace Options Script
Hello everyone!
I am using Illustrator CS3 on WinXP Pro.
Let me begin by saying that this is my first attempt at scripting anything and any help would be truly appreciated. I have written a script:
var myDocument = app.activeDocument;
var mySelection = myDocument.rasterItems[0];
mySelection.selected = true;
app.selection[0].trace();
app.selection[0].cornerAngle = 180;
app.selection[0].fills = true;
app.selection[0].ignoreWhite = true;
app.selection[0].minArea = 0;
app.selection[0].pathFitting = 0;
app.selection[0].threshold = 256;
app.selection[0].tracingModeType = 'TRACINGMODEBLACKANDWHITE';
app.redraw();
This script is tracing the raster image (barcode). However, it doesn't appear that it is using any of the tracing options.
Does anyone know how to properly script this in order to utilize the tracing options and then expand at the end?
Any help would be truly appreciated.
Many Thanks!
I am using Illustrator CS3 on WinXP Pro.
Let me begin by saying that this is my first attempt at scripting anything and any help would be truly appreciated. I have written a script:
var myDocument = app.activeDocument;
var mySelection = myDocument.rasterItems[0];
mySelection.selected = true;
app.selection[0].trace();
app.selection[0].cornerAngle = 180;
app.selection[0].fills = true;
app.selection[0].ignoreWhite = true;
app.selection[0].minArea = 0;
app.selection[0].pathFitting = 0;
app.selection[0].threshold = 256;
app.selection[0].tracingModeType = 'TRACINGMODEBLACKANDWHITE';
app.redraw();
This script is tracing the raster image (barcode). However, it doesn't appear that it is using any of the tracing options.
Does anyone know how to properly script this in order to utilize the tracing options and then expand at the end?
Any help would be truly appreciated.
Many Thanks!
