-
Notifications
You must be signed in to change notification settings - Fork 68
Materials
Curtis Holt edited this page Oct 5, 2020
·
11 revisions
Creates a material with an appropriate name
.
Returns a true or false value depending on if the ref
material exists.
Deletes the provided ref
material.
Get the ref
material (expecting a string) and return a reference to it.
Adds material mat
to an object with ref
.
Removes the material matname
from the ref
object.
Convenience functions:
- remove_material(ref, matname)
Returns a list of all materials in the file, provided by bpy.data.materials
.
A multipurpose function. If ref
is not provided, it will return bpy.data.materials
. If ref
is provided, then it will return a list of materials that belong to that object.
Get the ref
object and return a list of all materials from it.
Returns a list of all material from the ref
object.