This documentation is for the free plugin Py4D in CINEMA 4D R11.5 and not for the C4DSDK of Python in CINEMA 4D R12. For R12, please visit PluginCafe.com
This class is an Material assignment data type. This type is called by value:
#mat is a BaseMaterial instance and contains a MatAssignData element at the given position [ASSIGN_DATA_ID]
#in this case you have to send the object back to apply the change.
mdata = op[ASSIGN_DATA_ID]
mdata.InsertObject(cube, 0)
mat[ASSIGN_DATA_ID] = mdata
| Parameter: | v (MatAssignData) – Copy constructor. |
|---|---|
| Return type: | MatAssignData |
| Returns: | The new matassign data. |
Deletes an object in the list.
| Parameter: | index (int) – The index |
|---|---|
| Return type: | int |
| Returns: | True if the object was deleted, otherwise False |
Inserts a list of objects into the list.
| Parameters: |
|
|---|---|
| Return type: | bool |
| Returns: | True if successful, otherwise False |
Gets an object by index.
| Parameters: |
|
|---|---|
| Return type: | |
| Returns: | The object or None. |
Returns the count of objects in the list.
| Return type: | int |
|---|---|
| Returns: | The count |