How to select all Gradient filled paths but FAST?
Hello, I've been trying to find a faster way to select all gradient filled objects (not meshes) in complicated documents and change them to a basic color.
This would effectively remove the gradients which cause all sorts of problems when creating an underbase for screenprinting, but leave the objects themselves there since we don't want to remove them or expand them to raster or meshes.
I've found this method. It takes WAY too long on any document I've tried it on (all complex documents because that's all we need it for).
From here: Selecting pathItems with a Gradient
- #target illustrator
- var doc = app.activeDocument
- var pL = doc.pathItems.length;
- var pID;
- for (var i = 0, l = pL; i < l; i++) {
- pID = doc.pathItems;
- if (pID.fillColor.typename == 'GradientColor') {
- pID.selected = true;
- }
- }
The only other thing I've found for this takes just as long as well (it was ExtendedSelect from this link> Arid Ocean - ExtendedSelect Script ). I haven't checked the code but I'm guessing it probably uses the same method. I don't want people to have to just sit there and wait for their PC to maybe or maybe not respond after half an hour. Is their an instant way to select all gradient filled paths?
