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
BaseList2D
| Parameter: | type (int) – The id of the material, e.g: (Mfog). See also: Types |
|---|---|
| Return type: | BaseMaterial |
| Returns: | The new object or None, if allocation failed. |
Returns an average color for the material, based on the material preview.
| Parameter: | flags (BaseMaterial) – Check if the materials are identical; only their names can be different. |
|---|---|
| Return type: | bool |
| Returns: | True if the materials contents are the same. |
Returns an average color for the material, based on the material preview.
| Parameter: | flags (int) – Currently not used. |
|---|---|
| Return type: | BaseBitmap |
| Returns: | The preview image or None if no preview was built yet. |
Returns an average color for the material, based on the material preview.
| Parameter: | channel (int) – An optional specific channel to get the average for.
|
||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Return type: | Vector | ||||||||||||||||||||||||||||||||
| Returns: | Average color. |
Recalculates the material’s thumbnail and updates internal values.
Note
Recalculating the thumbnail/RTTM image is time intensive. It only needs to be done if you want to let the user view the change. The calculations are done asynchronously.
| Parameters: |
|
|---|