Skip to content

Instantly share code, notes, and snippets.

@skrat
Last active August 29, 2015 14:15
Show Gist options
  • Save skrat/78a4088b13d3cdb50ee7 to your computer and use it in GitHub Desktop.
Save skrat/78a4088b13d3cdb50ee7 to your computer and use it in GitHub Desktop.
def geometry_mat(self, b_obj, b_mat):
bpy.ops.object.material_slot_add()
b_obj.material_slots[0].link = 'OBJECT'
b_obj.material_slots[0].material = b_mat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment