New in version R13.029.
This data type allows to access the layers of materials.
Parameters: | v (LayerSet) – Source layer set for copy constructor. |
---|---|
Return type: | LayerSet |
Returns: | The layer set instance. |
Check if the set is empty.
Return type: | bool |
---|---|
Returns: | True if the set contains any layer, otherwise False. |
Check if a layer is enabled.
Parameters: | name (str) – The layer name to check for. |
---|---|
Return type: | bool |
Returns: | True if the layer is enabled, otherwise False. |
Check if a layer is in the set.
Parameters: | name (str) – The layer name to check for. |
---|---|
Return type: | bool |
Returns: | True if the layer is in the set, otherwise False. |
Get the set’s name.
Return type: | str |
---|---|
Returns: | The name of the set. |
Returns the layer set mode.
Return type: | int | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns: |
The mode:
|
Assign a new layer set mode.
Parameters: |
mode (int) –
The mode:
|
---|
Remove a layer.
Parameters: | layer (str) – The layer to remove. |
---|
Add a layer.
Parameters: | layer (str) – The layer to add. |
---|
Flush all layers.
Return the preview mode.
Return type: | int |
---|---|
Returns: | The preview mode. |
Set the preview mode.
Parameters: | s (int) – The new preview mode. |
---|