c4d.MatAssignData

Material assignment data type (CUSTOMDATATYPE_MATASSIGN).

Inheritance

Members

MatAssignData.__init__(v)
Parameters:v (c4d.MatAssignData) – Copy constructor.
Return type:c4d.MatAssignData
Returns:The new MatAssignData.
MatAssignData.InsertObject(pObject, lFlags)

Inserts an object into the list.

Parameters:
  • pObject (c4d.BaseList2D) – Object to insert.
  • lFlags (int) – A bit field for the initial selection state of pObject.
Return type:

bool

Returns:

True if successful, otherwise False

MatAssignData.DeleteObject(lIndex)

Deletes an object from the list.

Parameters:lIndex (int) – Object index. (0 <= lIndex < GetObjectCount())
Return type:int
Returns:True if the object was deleted, otherwise False
MatAssignData.ObjectFromIndex(doc, lIndex)

Gets an object by index.

Parameters:
Return type:

c4d.BaseList2D

Returns:

The object or None.

MatAssignData.GetObjectCount()

Gets the object count.

Return type:int
Returns:Number of objects in the list.