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

Disable object stroke effects is not working

Explorer ,
Oct 19, 2020 Oct 19, 2020

Copy link to clipboard

Copied

Hi!

I'm trying to disable strokes inner and outerglows in a specific object style using the code:

var doc = app.activeDocument;

var myObject = doc.objectStyles.item("box");

myObject.strokeEffectsEnablingSettings.enableInnerGlow = false;
myObject.strokeEffectsEnablingSettings.enableOuterGlow = false;

 

But all I got is this:

Captura de Tela 2020-10-19 às 07.53.08.png

 

Is not really disabling and the effects is still active in the object. I'm doing anything wrong?

 

Thank you in advance.

 

TOPICS
Scripting

Views

266

Translate

Translate

Report

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

Community Expert , Oct 20, 2020 Oct 20, 2020

I don't think you do anything wrong, it looks completely broken. 

myObject.strokeEffectsEnablingSettings.enableInnerGlow

always returns true no matter the state of the radio button. And togging it never sets the desired state. Please log a bug at https://indesign.uservoice.com

P.

Votes

Translate

Translate
Community Expert ,
Oct 19, 2020 Oct 19, 2020

Copy link to clipboard

Copied

Interesting. I get the same issue. I checked to see if it was because an object was overridden, but that is not the case. If I draw a new object and apply the style, it does not show, but it does not remove it for existing objects with the style applied. Following to see if anyone else has any thoughts. 

Votes

Translate

Translate

Report

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
Community Expert ,
Oct 20, 2020 Oct 20, 2020

Copy link to clipboard

Copied

I don't think you do anything wrong, it looks completely broken. 

myObject.strokeEffectsEnablingSettings.enableInnerGlow

always returns true no matter the state of the radio button. And togging it never sets the desired state. Please log a bug at https://indesign.uservoice.com

P.

Votes

Translate

Translate

Report

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
Explorer ,
Oct 20, 2020 Oct 20, 2020

Copy link to clipboard

Copied

LATEST

Thank you guys.

I will report this bug!

Votes

Translate

Translate

Report

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