How to set MaterialInstanceConstant Blend Mode in Python

I’m trying to set the blend mode in an instance material with python but have not found a solution.

I have tried so many thing and nothing works. This is my latest try and still does not work. I will appreciate any help.

MIBP = unreal.MaterialInstanceBasePropertyOverrides()
MIBP.set_editor_property(‘blend_mode’, unreal.BlendMode.BLEND_TRANSLUCENT)
newMat.set_editor_property(‘base_property_overrides’,MIBP)

Guillermo Leal

@MemoLeal
I think that maybe since you’re trying to use a Constant, it isn’t letting you redefine any of the properties. Maybe if you were to use the .MaterialInstance instead, you might be able to select the properties.
I hope this can help!
-Zen

@ZenLeviathan
Thanks for your replay. Actually my code works I was just missing this code.

MIBP.set_editor_property(‘override_blend_mode’, True)

Guillermo Leal

1 Like