c4d.ReflectionLayer

class c4d.ReflectionLayer

Represents a layer in a c4d.Material.

New in version R17.032.

Warning

This type cannot be instantiated.

Methods Signatures

ReflectionLayer.GetLayerID()

Retrieves the layer ID.

ReflectionLayer.GetDataID()

Retrieves the layer base data ID to get/set its data.

ReflectionLayer.GetName()

Retrieves the layer name.

ReflectionLayer.SetName()

Sets the layer name.

ReflectionLayer.GetFlags()

Retrieves the flags for the layer.

ReflectionLayer.SetFlags()

Sets the flags for the layer.

Methods Documentation

ReflectionLayer.GetLayerID(self)

Retrieves the layer ID.

New in version R18.020.

Return type

int

Returns

The layer ID. Must be a value greater or equal than 3, otherwise it failed.

ReflectionLayer.GetDataID(self)

Retrieves the layer base data ID to get/set its data.

Return type

int

Returns

The layer base data ID.

ReflectionLayer.GetName(self)

Retrieves the layer name.

New in version R18.020.

Return type

str

Returns

The layer name.

ReflectionLayer.SetName(self, name)

Sets the layer name.

New in version R18.020.

Parameters

name (str) –

The layer name to set.
If not valid (e.g. empty or all chars are whitespace characters) a default layer name will be used.

ReflectionLayer.GetFlags(self)

Retrieves the flags for the layer.

New in version R18.020.

Return type

int

Returns

The layer flags:

REFLECTION_FLAG_NONE

None.

REFLECTION_FLAG_SELECTED

Selected.

REFLECTION_FLAG_ACTIVE

Active.

REFLECTION_FLAG_TAB

Tab.

REFLECTION_FLAG_TRANSPARENCY

Transparency.

REFLECTION_FLAG_SEPARATE

Separate pass.

REFLECTION_FLAG_READY

Ready.

ReflectionLayer.SetFlags(self, flags)

Sets the flags for the layer.

New in version R18.020.

Parameters

flags (int) –

The layer flags to set:

REFLECTION_FLAG_NONE

None.

REFLECTION_FLAG_SELECTED

Selected.

REFLECTION_FLAG_ACTIVE

Active.

REFLECTION_FLAG_TAB

Tab.

REFLECTION_FLAG_TRANSPARENCY

Transparency.

REFLECTION_FLAG_SEPARATE

Separate pass.

REFLECTION_FLAG_READY

Ready.