Hiding viewport selection bracket

The following command works as a toggle to hide or show selection brackets. Is there way to set it to false only? The toggle doesn't work for me in my larger script.

actionMan.executeAction 0 "370" -- Tools: Viewport Selection Show Selection Bracket Toggle

I coudn't find any post unfortunitly that already solved this issue. Hopefully you guys know a way.

Thank you.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
StormBrig's picture

Once turned Off this setting

Once turned Off this setting should stay off - right?

jahman's picture

.

try this one
but you'll need to replace not disp.ShowSelectionBracketsEnabled with False

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.