Disable object stroke effects is not working

Community Beginner ,
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

119

Likes

Translate

Translate

Report

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

1 Correct Answer

Adobe Community Professional , Oct 20, 2020
Peter Kahrel Adobe Community Professional , 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.

Likes

Translate

Translate
Jump to answer Jump to answer
Adobe Community Professional ,
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. 

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
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.

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Community Beginner ,
Oct 20, 2020

Copy link to clipboard

Copied

Thank you guys.

I will report this bug!

Likes

Translate

Translate

Report

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