I want select a material, which already is define, of en object by using script.
How can I do that?
Example: This works but make everytime a new material. (Material.001, Material.002, ect..)
#******Material****** bpy.ops.object.select_all(action='DESELECT') object = bpy.data.objects['Cube'] mat = bpy.data.materials.new("Material") print (mat) me = object.data me.materials.append(mat)