c4d.LayerShader¶
-
class
c4d.
LayerShader
¶ Represents a layer shader that can contain several layers of different types (shaders, folders, effects).
It looks like this:
Methods Signatures
Initializes a new |
Returns the first layer of the shader. |
|
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
- 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
type – int
parent (Optional[c4d.LayerShaderLayer]) – The parent folder.