...
Language | Syntax |
---|---|
C++ | byte getState( bool& enabled ) |
Python | bool getState() |
Anchor | ||||
---|---|---|---|---|
|
setWeight, setActiveWeight
To set the weight of this BSDF in its parent layer.
map.type must be CmultiValue::Cmap::TYPE_VALUE, CmultiValue::Cmap::TYPE_BITMAP.
Language | Syntax |
---|---|
C++ | byte setWeight( CmultiValue::Cmap& map ) |
byte setActiveWeight( CmultiValue::Cmap& map ) | |
Python | int setWeight( Cmap map ) |
int setActiveWeight( Cmap map ) |
Return values
0 = Error setting weight map.
1 = Success.
Anchor | ||||
---|---|---|---|---|
|
getWeight, getActiveWeight
To get the weight of this BSDF in its parent layer.
Language | Syntax |
---|---|
C++ | byte getWeight( CmultiValue::Cmap& map ) |
byte getActiveWeight( CmultiValue::Cmap& map ) | |
Python | Cmap getWeight() |
Cmap getActiveWeight() |
Return valuess
0 = Error getting weight map.
1 = Success
Anchor | ||||
---|---|---|---|---|
|
...
Code Block | ||||
---|---|---|---|---|
| ||||
layer = material.addLayer(); bsdf = layer.addBSDF(); mvMap = Cmap(); mvMap.type = Cmap::TYPE_VALUE; (roughness will use a numeric value instead of a texture) mvMap.value = 77.0; bsdf.setColor( 'roughness', mvMap ); bsdf.setActiveColor( 'roughness', mvMap ); |
...