Mobile app version of vmapp.org
Login or Join
Caterina889

: Automatically make various multiple stroke colour the same as various underlying fill colours. I have auto traced a photograph in illustrator - its got thousands of vectors once I expand it and

@Caterina889

Posted in: #AdobeIllustrator

I have auto traced a photograph in illustrator - its got thousands of vectors once I expand it and illustrator has converted each of them to a filled colour - I want to now trace the edges of them with a grungy brush but using the underlying fill colour. Where in illustrator can I stroke or outline these fills using the underlying colour - surely this is something that the program automatically does?

I've found this script online but don't know how to implement it. I'm new to this so any help appreciated. Many thanks.

James

var idoc = app.activeDocument;
var sel = idoc.selection;

for (i=0; i<sel.length; i++) {
var ipath = sel[i];
ipath.stroked = true;
ipath.strokeColor = ipath.fillColor;
}

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Caterina889

1 Comments

Sorted by latest first Latest Oldest Best

 

@Nimeshi706

Use of scripts is detailed in the Adobe Illustrator Help files: helpx.adobe.com/illustrator/using/automation-scripts.html A simple Google search for "How to use a script in Adobe Illustrator" or a search of the help files for "scripts" would have both turned up results.

To use that script (or any script for an Adobe application)....


Copy that script code to a text file
Save the text files as plain text (you can not use Word for this) and title it whatever you want adding a .jsx suffix. So the final file should be something like "AddStrokes.jsx"
Place your .jsx file into Adobe Illustrator CSx/Presets/[language]/Scripts
Relaunch Adobe Illustrator


Now open your artwork, select some objects and choose File > Scripts > AddStrokes (or whatever you titled your file).

For the record that script does function correctly. At least in Illustrator CS6.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme