What the…?
Even though the Blender documentation (and the source code of a number of plugins in the app’s scripts > startup folder) state that the default setting for a new modifier is show_in_editmode = False, every time I add a modifier, this parameter is set to True, and I have to change it manually. Every. Time.
It’s a pain.
Is it my fault? Did I change a setting somewhere? Is it the Boxcutter Prefs? My friends, by this point I have not a flipping clue.
Ideally, I’d love to be able to click a checkbox in the Preferences window, or toggle a bool in a .py file in the app bundle somewhere, but those options haven’t presented themselves so far.
I dabbled with the code in How to set blender default properties in addons? but frankly, it’s over my head.
The path I’m on so far is this:
import bpy
modifiers = {
'ArmatureModifier',
'ArrayModifier',
'BevelModifier',
...
}
# test if context = bpy.ops.object.modifier_add
opsobj = bpy.ops.object
cobmod = bpy.context.object.modifiers
if opsobj.modifier_add(type=modifier):
cobmod[modifier].show_in_editmode = False
but it’s obviously tangled up, and I suspect I may be heading down another dead end.
My brain is woozy.
So,
I thought I’d ask here and see if anyone already knows the obvious and simple solution that has so far evaded me.
Maybe it’s something to do with bpy.context.preferences.themes['Default'], or maybe it’s adding a .py file with params.modifiers.show_in_editmode = False to my user startup folder.
Any assistance would be appreciated.