Visibility Layers
Such as the Maya's display layers, the picker contains a system to show and hide a group of buttons.
Create a Layer
Layers can only be created from the Advanced Editor. To create a layer:
- Select a series of shapes.
- Right-click and choose "Create Layer from Selection".
- Enter a name in the dialog box.
Once created, the visibility layer will be added to the Picker tab in the right panel, under the "Visibility Layers" section.
Switch Visibility
The picker contains a menu to select visible layer.
Include Toggle Button
As it could be tidious to switch layer visibility you can add a button in the picker to toggle the visibilities.
To achieve this, create a script button and use this python command:
import dwpicker
# Show a layer
dwpicker.set_layer_visible("name of the layer", True)
# Hide a layer
dwpicker.set_layer_visible("name of the layer", False)
# Toggle visibility
dwpicker.toggle_layer_visibility("name of the layer")