Set a constanst material instance shading model override via python

Hi! I’m looking for python code that will allow me to change the shading model of a material instance. I see you can change quite a bit through MaterialEditingLibrary, but I don’t see option for the overrides shading model or blend mode.

Hello. I am also looking for a solution to this. Did you have any luck?

Hello!

I was searching for the same thing, and finally figured it out:
This parameter is on the MaterialInstanceConstant directly, not a procedural parameter depending on the master material like the MaterialEditingLibrary access.
It is located in the base_property_overrides property of the MaterialInstanceConstant:
unreal.MaterialInstanceConstant.base_property_overrides.shading_model
along with the toggle:
unreal.MaterialInstanceConstant.base_property_overrides.override_shading_model

Access needs to be done with the usual get_editor_property…

Hope this can help others wondering!