get_shader().has_param() don't work

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By zbyszko
print(mesh_armature.get_child(0).get_mesh().surface_get_material(0).get_shader_param("Skin_color"))
	print(mesh_armature.get_child(0).get_mesh().surface_get_material(0).get_shader().has_param("Skin_color"))

outputs:
0.960784,0.901961,0.835294,1
False

What I’am doing wrong ??

Hard to know what you are doing with only those print snippets :slight_smile: But that is a crazy nested path, maybe easier to work with signals?

Becbunzen | 2020-06-03 21:57

Material sent signals??
i’am doing character editor
Newer mind

>     > if(mesh_armature.get_child(0).get_mesh().surface_get_material(0).get_shader_param("Skin_color")
>     > !=null):

    print(true)

works well too

zbyszko | 2020-06-04 14:57