Copy link to clipboard
Copied
I've been given a document to work on from another designer and for whatever reason, they have added a basic feather to every image.
I don't need this feather and frankly, it's annoying lining an image up with it activated so I've been turning them off as and when.
i was hoping someone had a script which could do this for me? or perhaps there is a shortcut command I'm not familiar with?
Appreciate any support.
Hi,
Try this.
var items= app.activeDocument.pageItems.everyItem().getElements();
for (i = 0; i < items.length; i++) {
items.transparencySettings.featherSettings.mode = FeatherMode.NONE;
items.transparencySettings.featherSettings.width = 0;
items.transparencySettings.featherSettings.cornerType = FeatherCornerType.DIFFUSION;
items.transparencySettings.featherSettings.noise = 0;
items.transparencySettings.featherSettings.chokeAmount = 0;
}
Thanks,
Prabu G
Copy link to clipboard
Copied
Here is a simple AppleScript that will do the job. Notice that effects such as shadow are part of the properties for transparency settings.
tell application "Adobe InDesign CC 2017"
set rectList to every rectangle of document 1 where mode of feather settings of transparency settings is not none
if rectList is not {} then
repeat with eachItem in rectList
set mode of feather settings of transparency settings of eachItem to none
end repeat
else
activate
display alert "No rectangles having feather found"
end if
end tell
Copy link to clipboard
Copied
I appreciate this, i should have mentioned i'm on Windows 10 though so i'll need some a jsx
Thanks!
Copy link to clipboard
Copied
Hi,
Try this.
var items= app.activeDocument.pageItems.everyItem().getElements();
for (i = 0; i < items.length; i++) {
items.transparencySettings.featherSettings.mode = FeatherMode.NONE;
items.transparencySettings.featherSettings.width = 0;
items.transparencySettings.featherSettings.cornerType = FeatherCornerType.DIFFUSION;
items.transparencySettings.featherSettings.noise = 0;
items.transparencySettings.featherSettings.chokeAmount = 0;
}
Thanks,
Prabu G
Copy link to clipboard
Copied
This worked perfectly, thank you.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now