Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Script to remove basic feather effects

Engaged ,
Nov 27, 2017 Nov 27, 2017

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.

TOPICS
Scripting
856
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Engaged , Nov 28, 2017 Nov 28, 2017

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

Translate
Enthusiast ,
Nov 27, 2017 Nov 27, 2017

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Nov 28, 2017 Nov 28, 2017

I appreciate this, i should have mentioned i'm on Windows 10 though so i'll need some a jsx

Thanks!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Nov 28, 2017 Nov 28, 2017

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

Thanks,
Prabu
Design smarter, faster, and bolder with InDesign scripting.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Nov 29, 2017 Nov 29, 2017
LATEST

This worked perfectly, thank you.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines