c4d.ReflectionLayer

New in version R17.032.

Represents a layer in a c4d.Material.

This type cannot be instantiated.

Members

ReflectionLayer.GetLayerID()

New in version R18.020.

Retrieves the layer ID.

Return type:int
Returns:The layer ID. Must be a value greater or equal than 3, otherwise it failed.
ReflectionLayer.GetDataID()

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

Return type:int
Returns:The layer base data ID.
ReflectionLayer.GetName()

New in version R18.020.

Retrieves the layer name.

Return type:str
Returns:The layer name.
ReflectionLayer.SetName(name)

New in version R18.020.

Sets the layer name.

Parameters:name (str) – The layer name to set. If not valid (e.g. empty or all chars are whitespaces) a default layer name will be used.
ReflectionLayer.GetFlags()

New in version R18.020.

Retrieves the flags for the layer.

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(flags)

New in version R18.020.

Sets the flags for the layer.

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.