assign_material

Icepak.assign_material(obj, mat)

Assign a material to one or more objects.

Parameters
objstr, list

One or more objects to assign materials to.

matstr

Material to assign. If this material is not present it will be created.

Returns
bool

True when successful, False when failed.

References

>>> oEditor.AssignMaterial