Remove shadows from different kind of objects
Hi folks! Is there a way to remove shadows from many different objects at once? (It’s a map, all countries with various colors and lines).
Hi folks! Is there a way to remove shadows from many different objects at once? (It’s a map, all countries with various colors and lines).
Just for the sake of exploring options, here is another approach to removing the shadows. The downside is that it removes any raster items from the document (because expanded shadows are raster items), and doubles the paths into filled paths and stroked paths (instead of previously being both filled and stroked).
var doc = app.activeDocument,
items = doc.rasterItems;
app.executeMenuCommand('selectall');
app.executeMenuCommand('expandStyle');
app.executeMenuCommand('deselectall');
for (var i = items.length - 1; i >= 0; i--)
items[i].remove();
If you want to test this script, save it as a plain text file with name, eg. "Expand appearance and remove shadows.js" and run from the File > Scripts > Other Script ... menu.
- Mark
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.