c4d.LayerShaderLayer
¶
New in version R17.032.
Represents a layer in a
LayerShader
.
This type cannot be instantiated.
c4d.
LayerShaderLayer
¶
LayerShaderLayer.
GetNext
(
)
¶
Gets the next layer.
Note
Use this method to navigate trough the layers of a layer shader.
| Return type: | c4d.LayerShaderLayer |
|---|---|
| Returns: | The next layer. |
LayerShaderLayer.
GetType
(
)
¶
Gets the layer type.
| Return type: | int | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Returns: |
The layer type:
|
LayerShaderLayer.
GetName
(
doc
)
¶
Gets the name of the layer.
| Parameters: | doc ( c4d.documents.BaseDocument ) – The document for the operation. |
|---|---|
| Return type: | str |
| Returns: | The layer name. |
LayerShaderLayer.
GetPreview
(
)
¶
Retrieves the preview bitmap.
| Return type: | c4d.bitmaps.BaseBitmap |
|---|---|
| Returns: | The preview bitmap. |
LayerShaderLayer.
GetParameter
(
id
)
¶
Retrieves layer parameters.
Note
See Layer Shader Library documentation in the C++ SDK for the information on the paramater IDs and types.
| Parameters: | id ( int ) – The ID of the parameter to get. |
|---|---|
| Return type: | any |
| Returns: | The parameter value. |
LayerShaderLayer.
SetParameter
(
id
,
data
)
¶
Sets layer parameters.
Note
See Layer Shader Library documentation in the C++ SDK for the information on the paramater IDs and types.
| Parameters: |
|
|---|---|
| Return type: |
bool |
| Returns: |
True if the parameter could be set, otherwise False . |