Parameters: | type (int) – The id of the material, e.g: (Mfog). See also: Descriptions in CINEMA 4D |
---|---|
Return type: | BaseMaterial |
Returns: | The new material. |
Check if this channel is the same as another channel. For plugin shaders this means an automatic comparison of container values.
Parameters: | 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.
Parameters: | 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.
Parameters: |
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: |
|
---|
New in version R13.029.
Retrieves information about what the material requires from the raytracer and what it will return.
Return type: | int | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Returns: |
The return values are:
|