c4d.MatAssignData

class c4d.MatAssignData

Material assignment data type (CUSTOMDATATYPE_MATASSIGN).

Methods Signatures

MatAssignData.__init__(self, v)

type v

c4d.MatAssignData

MatAssignData.InsertObject(self, pObject, lFlags)

Inserts an object into the list.

MatAssignData.DeleteObject(self, lIndex)

Deletes an object from the list.

MatAssignData.ObjectFromIndex(self, doc, lIndex)

Gets an object by index.

MatAssignData.GetObjectCount(self)

Gets the object count.

Inheritance

Parent Class:

Methods Documentation

MatAssignData.__init__(self, v)
Parameters

v (c4d.MatAssignData) – Copy constructor.

Return type

c4d.MatAssignData

Returns

The new MatAssignData.

MatAssignData.InsertObject(self, 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(self, 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(self, doc, lIndex)

Gets an object by index.

Parameters
Return type

c4d.BaseList2D

Returns

The object or None.

MatAssignData.GetObjectCount(self)

Gets the object count.

Return type

int

Returns

Number of objects in the list.