Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Hi
yes you can create an action record select all (cmd/ctrl A), apply brush stroke.
/G
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Can you share your sample file as well as the action set file you created?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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:
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.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now