Skip to main content
rcraighead
Legend
April 5, 2017
質問

Actions and Image Trace?

  • April 5, 2017
  • 返信数 3.
  • 6489 ビュー

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?

このトピックへの返信は締め切られました。

返信数 3

Participant
August 14, 2018

+1

rcraighead
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
May 16, 2024

I need an answer to this too. Did you find where the file was stored on a Mac? I can't for the life of me find it.


daftfish,

 

I did a video about this on LinkedIn Learning which you can watch for FREE here.

 

You can download my custom vectorizing presets and instructions on how to edit them yourself and where to place them on both MacOS and Windows here.

 

The image below shows you the areas I customized for image trace. BTW they've changed Image Trace since I did this but it still work in my latest version?

 

Hope this helps.

 

Von

 

Creative Director / IllustratorPPLLUVProcess.com
rcraighead
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).

rcraighead
rcraighead作成者
Legend
May 24, 2017

Thanks, Ton, I'll take a look. The Action includes more steps than just Image Trace, so moving to Bridge for a portion of the process seems inefficient, but I need to see what Bridge can do.

rcraighead
rcraighead作成者
Legend
April 5, 2017

I found a thread addressing this limitation with Actions:

Changing live trace default setting