Highlighted

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.

 

Adobe Community Professional
Correct answer by Peter Kahrel | Adobe Community Professional

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.

TOPICS
Scripting

Views

66

Likes

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

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.

 

Adobe Community Professional
Correct answer by Peter Kahrel | Adobe Community Professional

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.

TOPICS
Scripting

Views

67

Likes

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
Oct 19, 2020 0
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
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 19, 2020 1
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
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 20, 2020 2
Community Beginner ,
Oct 20, 2020

Copy link to clipboard

Copied

Thank you guys.

I will report this bug!

Likes

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
Reply
Loading...
Oct 20, 2020 0