Copy link to clipboard
Copied
As mentioned, it is not possible to remove() or delete a brush using a script
https://community.adobe.com/t5/illustrator-discussions/is-it-possible-to-remove-or-delete-a-brush-us...
2 years later it is still impossible?
Looking at the refrence, a brush doesn't have a remove() function. So the answer is: Yes, not possible.
Copy link to clipboard
Copied
Looking at the refrence, a brush doesn't have a remove() function. So the answer is: Yes, not possible.
Copy link to clipboard
Copied
I'm not a scripter so don't shoot me, but can you convert it to something else - expand, or outline - and then delete that?
Copy link to clipboard
Copied
I think the OP is referring to deleting brushes from the Brushes palette.
Copy link to clipboard
Copied
Ah ha... shot anyway...
Copy link to clipboard
Copied
do you want to remove one brush in particular? the thread linked does mention you can remove all unused brushes with an action. Is that not an option for your workflow?
Copy link to clipboard
Copied
Actually i want to check if all active documents items, with a specific stroke swatch ( CutContour), have a brush other than the default !
Copy link to clipboard
Copied
So you want to assign a basic stroke to all the elements that have that stroke color?
Copy link to clipboard
Copied
Yes!
Copy link to clipboard
Copied
I tried some way to remove a brush from a path item, and guess what, trying to apply a default brush failed because the "[Basic]" brush is in the UI but it is not in the document!
However, you can still record the action with the flyout menu of the brushes panel - "Remove Brush Stroke".
Now it's easy to do what you wish using this code: