Skip to main content
rcraighead
Legend
April 5, 2017
Question

Actions and Image Trace?

  • April 5, 2017
  • 3 replies
  • 6495 views

CC 2015.3/Mac OS X 10.11.6

What am I missing?


When I record an Action using a specific "Image Trace" preset the Action does not retain the setting and, instead, runs with the "Default" Image Trace settings. Surely an Action is able to record custom Image Trace settings, right?

This topic has been closed for replies.

3 replies

Participant
August 14, 2018

+1

rcraighead
Legend
August 15, 2018

queezy,

I have experimented with using a Javascript to automate tracing. Any preset can be called in the script. This example still uses "Default" but another preset could be used:

var doc = app.activeDocument;

var pItems = doc.pathItems;

var sel = doc.selection; 

//~ var Selected = doc.selection[0]

var Tracing_Preset = '[Default]';

var f =15; //percent of current size

app.executeMenuCommand('selectall');

for(var i = 0; i<sel.length; i++){

    if(sel.typename == 'RasterItem'){

        var pic = sel.trace(); 

        pic.tracing.tracingOptions.loadFromPreset(Tracing_Preset);

        pic.tracing.expandTracing().selected = true;

        } 

But the full script has been unreliable, causing AI to crash intermittently.

I've found the most reliable solution is to manually edit the "Vectorizing Presets" preference file found in "~/Preferences/Adobe Illustrator 20 Settings/en_US/Vectorizing Presets" and convert the "Default" preset to the one I want to use in the AI Action. I realize this is not very flexible, but in our environment we use the same preset for all tracing tasks.

Vonster
Community Expert
Community Expert
November 5, 2020

rcraighead,

 

Thi is exactly what I need to do. I have to create about 200 brushes and want to make it a one button push for each. Like you I use the same preset on all image traces. Would you mind sharing your pref file for Vectorizing Presets? I don't understand how to integrate Javascript? If you could email me that info (at) vonster (dot) com I'll ship you some stickers and once I have the vector brush set done I'll give it to you as well.

 

This would help a ton.

 

Thanks.

 

Von

Creative Director / IllustratorPPLLUVProcess.com
rcraighead
Legend
May 24, 2017

I am back to this questions. I now need to create an Action that runs two different custom Image Trace Presets. Just recording the Action does NOT recognize the custom Preset. Is there no way to run a custom Image Trace using an Action??

Ton Frederiks
Community Expert
Community Expert
May 24, 2017

I do not see a way to choose a custom setting with an action.

But if the purpose is to batch convert a lot of images with Image Trace, you should have a look at Adobe Bridge which has an Image Trace script in the Tools menu (and lets you choose a custom preset).

Participant
December 27, 2022

Hi Tom

This 2022 and people are still having problems with Batch processing for Image Tracing. I tried everything until I came across your answer. Who would have thought that the function was not in Illustrator but in Bridge - not me, for sure. Is this a feature or an Adobe error? There seems to be little conformity in batch processing between Photoshop and Illustator. Anyway, what I really mean to say is thank you very much for providing such a useful answer to my problem.

rcraighead
Legend
April 5, 2017

I found a thread addressing this limitation with Actions:

Changing live trace default setting