c4d.MatAssignData¶
-
class
c4d.
MatAssignData
¶ Material assignment data type (CUSTOMDATATYPE_MATASSIGN).
Methods Signatures
|
Inserts an object into the list. |
|
Deletes an object from the list. |
|
Gets an object by index. |
|
Gets the object count. |
Inheritance
Parent Class:
Methods Documentation
-
MatAssignData.
__init__
(self, v)¶ - Parameters
v (c4d.MatAssignData) – Copy constructor.
-
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
doc (c4d.documents.BaseDocument) – Object document.
lIndex (int) – Object index. (0 <= lIndex <
GetObjectCount()
)
- Return type
Optional[c4d.BaseList2D]
- Returns
The object or None.
-
MatAssignData.
GetObjectCount
(self)¶ Gets the object count.
- Return type
int
- Returns
Number of objects in the list.