Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Automate brush application to all paths in files

Contributor ,
Jan 26, 2022 Jan 26, 2022

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.

TOPICS
Scripting
784
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Jan 27, 2022 Jan 27, 2022

Hi

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

/G

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 27, 2022 Jan 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. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 27, 2022 Jan 27, 2022

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 28, 2022 Jan 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-pa...

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.

Marinapomorac_0-1643365508566.png

 





Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 28, 2022 Jan 28, 2022
LATEST

It looks like the problem was with my AI. None of the actions worked so I unistalled AI and reinstall it and now actions work again. 
Since SVG is gigantic in dimensions my old AI kept crushing, I have to reduce it first, then apply brush, then fit to artboard.
This is what I have now:

Marinapomorac_0-1643394059908.png

Now, this works for the maze files, I have to figure out how to select all black lines in artboard so only on those brush gets applied, while solution line stays intact.



Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines