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

c4d.Material – a material class

The material object created with Mmaterial.

class c4d.Material

Methods

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

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

Return type:

bool

Returns:

The type of channel, stored in c4d.

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.

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.

  • state (bool) – True to enable this channel.

Table Of Contents

This Page