Skip to main content
Marinapomorac
Inspiring
January 27, 2022
Question

Automate brush application to all paths in files

  • January 27, 2022
  • 2 replies
  • 825 views

So I asked all over internet Illustrator users is it possible to have action or script that will automatically apply custom brush to all paths in SVG file and save the file or export to PNG and close. 

 

I tried making the action but running it does nothing. 

 

My guess is that script would be better option and then have script target custom brush by name? 

 

I have 100 SVG files with simple line paths and I need all paths to have brush effect.

What I do now is open file, select all, apply brush, save, close. Is there way to automate this?

 

I can't find any answer on internet. 

 

Please help.

This topic has been closed for replies.

2 replies

Kurt Gold
Community Expert
January 27, 2022

Can you share your sample file as well as the action set file you created?

Marinapomorac
Inspiring
January 28, 2022

Hi @Kurt Gold  I think you already have/have seen my sample SVG files. It is continuation of the previous question.

https://community.adobe.com/t5/illustrator-discussions/merging-straight-broken-multiple-overlayed-path-lines-into-one/m-p/12709989#M307699

I created couple of brushes like grass, heart etc. and it looks great but when I try to apply it automatically on all SVG files in folder it just doesn't work. 
So I saved brushes in Preset folder and that did not work.
My next idea was to copy small path that is in that brush in the back and start action with that.

Have small portion of path in clipboard with the brush I want then I open SVG and start recording action.
1. "copy in back"
2. Select all on artboard
3. apply brush
4. change stroke
5. save as svg or export as PNG

So my next guess was it can be done with script.

 





Grant H
Community Expert
January 27, 2022

Hi

yes you can create an action record select all (cmd/ctrl A), apply brush stroke.

/G

 

Marinapomorac
Inspiring
January 27, 2022

I tried and it doesn't work.
My process.
Open SVG file.
Start recording action.
Sellect all.
Apply brush.
Set stroke value to 0.15
Save.
End recording.

And then I run action and literally nothing happens.