Download

How to set parameter in Material Instance using Python?

I’m trying to set the texture parameter in one of the material instances, using the function as follow:
material_editing_lib.set_material_instance_texture_parameter_value(created_material_instance,‘BaseColorTexture’, found_texture)
in which created_material instance is the new instance
‘BaseColortTexture’ is the name of the parameter
and found_texture is the texture object, Texture2D class.

After the call, the function return a false value.

What am I doing wrong here?

It looks like a specification …