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:
Is not really disabling and the effects is still active in the object. I'm doing anything wrong?
Thank you in advance.
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.
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.
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.
Copy link to clipboard
Copied
Thank you guys.
I will report this bug!