c4d.LayerShaderLayer

New in version R17.032.

Represents a layer in a LayerShader.

This type cannot be instantiated.

Members

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:
TypeUnknown Unknown layer.
TypeFolder Folder.
TypeShader Shader.
TypeBrightnessContrast Brightness/Contrast.
TypeHSL HSL.
TypePosterize Posterize.
TypeColorize Colorize.
TypeClamp Clamp.
TypeClip Clip.
TypeDistorter Distorter.
TypeTransform Transformation.
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:
  • id (int) – The ID of the parameter to set.
  • data (any) – The new parameter value.
Return type:

bool

Returns:

True if the parameter could be set, otherwise False.