c4d.LayerShader

class c4d.LayerShader

Represents a layer shader that can contain several layers of different types (shaders, folders, effects).

It looks like this:

../../../../../../../_images/layershader_layershader.png

Methods Signatures

LayerShader.__init__(self)

Initializes a new LayerShader in memory.

LayerShader.GetFirstLayer(self)

Returns the first layer of the shader.

LayerShader.AddLayer(self, type[, parent])

Creates and adds a new layer of a specific type.

Inheritance

Parent Class:

Methods Documentation

LayerShader.__init__(self)

Initializes a new LayerShader in memory.

LayerShader.GetFirstLayer(self)

Returns the first layer of the shader.

Note

To navigate through all the layers of a layer shader, get its first layer then use LayerShaderLayer.GetNext().

Return type

c4d.LayerShaderLayer

Returns

The first layer in the layer shader.

LayerShader.AddLayer(self, type, parent=None)

Creates and adds a new layer of a specific type.

New in version 24.

Parameters