c4d.Material
¶
c4d.
Material
¶
Material.AddReflectionLayer()
Material.GetReflectionLayerID()
Material.GetReflectionLayerIndex()
Material.GetReflectionLayerTrans()
Material.GetReflectionLayerCount()
Material.RemoveReflectionLayerID()
Material.RemoveReflectionLayerIndex()
Material.RemoveReflectionAllLayers()
Material.GetAllReflectionShaders()
Material.GetReflectionPrimaryLayers()
c4d.BaseMaterial
Material.
__init__
(
)
¶
Return type: | c4d.Material |
---|---|
Returns: | The new material. |
Material.
GetChannelState
(
channel
)
¶
Get the state of a channel (if it is enabled or disabled).
Parameters: |
channel
(
int
) –
The type of channel:
|
||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Return type: | bool | ||||||||||||||||||||||||||||||
Returns: | True if the channel is enabled. |
Material.
SetChannelState
(
channel
,
state
)
¶
Set the state of a channel (if it is enabled or disabled).
Parameters: |
|
---|
Material.
AddReflectionLayer
(
)
¶
New in version R17.032.
Adds a reflection/specular layer.
Return type: | c4d.ReflectionLayer |
---|---|
Returns: | The added reflection/specular layer. |
Material.
GetReflectionLayerID
(
id
)
¶
New in version R17.032.
Retrieves a reflection/specular layer by ID.
Parameters: | id ( int ) – The layer ID. |
---|---|
Return type: | c4d.ReflectionLayer |
Returns: | The reflection/specular layer. |
Material.
GetReflectionLayerIndex
(
index
)
¶
New in version R17.032.
Retrieves a reflection/specular layer by index.
Parameters: | index ( int ) – The layer index. |
---|---|
Return type: | c4d.ReflectionLayer |
Returns: | The reflection/specular layer. |
Material.
GetReflectionLayerTrans
(
)
¶
New in version R17.032.
Retrieves the transparency layer.
Return type: | c4d.ReflectionLayer |
---|---|
Returns: | The transparency layer, or None if not available. |
Material.
GetReflectionLayerCount
(
)
¶
New in version R17.032.
Retrieves the number of reflection/specular layers.
Return type: | int |
---|---|
Returns: | The reflection/specular layers’ count. |
Material.
RemoveReflectionLayerID
(
)
¶
New in version R17.032.
Removes a reflection/specular layer by ID.
Parameters: | id ( int ) – The layer ID. |
---|
Material.
RemoveReflectionLayerIndex
(
)
¶
New in version R17.032.
Removes a reflection/specular layer by index.
Parameters: | index ( int ) – The layer index. |
---|
Material.
RemoveReflectionAllLayers
(
)
¶
New in version R17.032.
Deletes all reflection/specular layers.
Material.
GetAllReflectionShaders
(
)
¶
New in version R17.032.
Retrieves all the reflection/specular shaders.
Return type: |
list of
BaseShader
|
---|---|
Returns: | The reflection/specular shaders. |
Material.
GetReflectionPrimaryLayers
(
)
¶
New in version R17.032.
Retrieves the indices to the primary reflection and specular layers (can be -1 for empty).
Return type: | tuple(int, int) |
---|---|
Returns: | The most significant reflection and specular layers. |