c4d.Material

Definition

class c4d. Material

Inheritance

Members

Material. __init__ ( )
Return type: c4d.Material
Returns: The new material.
Material. GetChannelState ( channel )

Get the state of a channel (if it is enabled or disabled).

Parameters: channel ( int ) –

The type of channel:

CHANNEL_COLOR The color channel of the material.
CHANNEL_LUMINANCE The luminance channel of the material.
CHANNEL_TRANSPARENCY The transparency channel of the material.
CHANNEL_REFLECTION The reflection channel of the material.
CHANNEL_ENVIRONMENT The environment channel of the material.
CHANNEL_FOG The fog channel of the material.
CHANNEL_BUMP The bump channel of the material.
CHANNEL_ALPHA The alpha channel of the material.
CHANNEL_SPECULAR The specular channel of the material.
CHANNEL_SPECULARCOLOR The specular color channel of the material.
CHANNEL_GLOW The glow channel of the material.
CHANNEL_DISPLACEMENT The displacement channel of the material.
CHANNEL_DIFFUSION The diffusion channel of the material.
CHANNEL_NORMAL The normal channel of the material.
CHANNEL_ANY This specifies an unlabeled plugin channel.
Return type: bool
Returns: True if the channel is enabled.
Material. SetChannelState ( channel , state )

Set the state of a channel (if it is enabled or disabled).

Parameters:
  • channel ( int ) –

    The type of channel to change:

    CHANNEL_COLOR The color channel of the material.
    CHANNEL_LUMINANCE The luminance channel of the material.
    CHANNEL_TRANSPARENCY The transparency channel of the material.
    CHANNEL_REFLECTION The reflection channel of the material.
    CHANNEL_ENVIRONMENT The environment channel of the material.
    CHANNEL_FOG The fog channel of the material.
    CHANNEL_BUMP The bump channel of the material.
    CHANNEL_ALPHA The alpha channel of the material.
    CHANNEL_SPECULAR The specular channel of the material.
    CHANNEL_SPECULARCOLOR The specular color channel of the material.
    CHANNEL_GLOW The glow channel of the material.
    CHANNEL_DISPLACEMENT The displacement channel of the material.
    CHANNEL_DIFFUSION The diffusion channel of the material.
    CHANNEL_NORMAL The normal channel of the material.
    CHANNEL_ANY This specifies an unlabeled plugin channel.
  • state ( bool ) – True to enable the channel.
Material. AddReflectionLayer ( )

New in version R17.032.

Adds a reflection/specular layer.

Return type: c4d.ReflectionLayer
Returns: The added reflection/specular layer.
Material. GetReflectionLayerID ( id )

New in version R17.032.

Retrieves a reflection/specular layer by ID.

Parameters: id ( int ) – The layer ID.
Return type: c4d.ReflectionLayer
Returns: The reflection/specular layer.
Material. GetReflectionLayerIndex ( index )

New in version R17.032.

Retrieves a reflection/specular layer by index.

Parameters: index ( int ) – The layer index.
Return type: c4d.ReflectionLayer
Returns: The reflection/specular layer.
Material. GetReflectionLayerTrans ( )

New in version R17.032.

Retrieves the transparency layer.

Return type: c4d.ReflectionLayer
Returns: The transparency layer, or None if not available.
Material. GetReflectionLayerCount ( )

New in version R17.032.

Retrieves the number of reflection/specular layers.

Return type: int
Returns: The reflection/specular layers’ count.
Material. RemoveReflectionLayerID ( )

New in version R17.032.

Removes a reflection/specular layer by ID.

Parameters: id ( int ) – The layer ID.
Material. RemoveReflectionLayerIndex ( )

New in version R17.032.

Removes a reflection/specular layer by index.

Parameters: index ( int ) – The layer index.
Material. RemoveReflectionAllLayers ( )

New in version R17.032.

Deletes all reflection/specular layers.

Material. GetAllReflectionShaders ( )

New in version R17.032.

Retrieves all the reflection/specular shaders.

Return type: list of BaseShader
Returns: The reflection/specular shaders.
Material. GetReflectionPrimaryLayers ( )

New in version R17.032.

Retrieves the indices to the primary reflection and specular layers (can be -1 for empty).

Return type: tuple(int, int)
Returns: The most significant reflection and specular layers.

Table Of Contents