c4d.MatAssignData

Material assignment data type (CUSTOMDATATYPE_MATASSIGN) for the MatAssignCustomGui GUI.

This type is called by value.

Inheritance

Members

MatAssignData.__init__([v])
Parameters: v (MatAssignData) – Copy constructor.
Return type: MatAssignData
Returns: The new matassign data.
MatAssignData.DeleteObject(index)

Deletes an object in the list.

Parameters: index (int) – The index
Return type: int
Returns: True if the object was deleted, otherwise False
MatAssignData.InsertObject(plist, flags)

Inserts a list of objects into the list.

Parameters:
  • plist (List of BaseList2D) – A list of objects to insert.
  • flags (int) – The Flags - set for all objects in the given list plist.
Return type:

bool

Returns:

True if successful, otherwise False

MatAssignData.GetObject(index, doc)

Gets an object by index.

Parameters:
  • index (int) – The index
  • doc (BaseDocument) – The document of the object.
Return type:

BaseList2D

Returns:

The object or None.

MatAssignData.GetObjectCount()

Returns the count of objects in the list.

Return type: int
Returns: The count

Table Of Contents