Function Wizard Example 3: Showing and Hiding Deformation Controls
The function wizard allows you to create a Checkbox widget which, when checked, will display the deformation controls for a specific set of deformation nodes, and when unchecked, will hide these deformation controls.
-
In the Node View or Timeline view, select the deformation nodes or deformation groups for which you want to show or hide the controls with a Checkbox widget.
- Do one of the following to add the Master Controller toolbar to your workspace:
- Right-click on an existing toolbar and select Master Controller.
- In the top menu, select Windows > Toolbars > Master Controller.
The Master Controller toolbar appears.
-
In the Master Controller toolbar, click on the Function Wizard button.
The Function Wizard dialog appears.
- In the Controller Type drop-down, select CheckboxWidget.
-
In the Operation drop-down, select Show/Hide Deformers.
-
In the Target Nodes list, verify that all the nodes you want your Master Controller widget to control are listed. If not:
- To add nodes to the Target Nodes list, select them in the Node View, the Timeline view or the Camera view, then click on Add Selected Nodes in the Function Wizard dialog box.
- To remove nodes from the Target Nodes list, select them in the Target Nodes list, then click on Remove selected nodes.
- In the Label field, type in the display name for your Master Controller widget.
-
Click OK.
-
A dialog box will appear prompting you to select a composite to attach the Master Controller to. In the Composite drop-down, select the main composite for your character rig. Then, click OK.
A Checkbox widget will be created and will appear in the Camera view. Toggling it on will display the controls for the deformation chains that were in the Target Nodes list, and toggling it off will hide them.
NOTE Whether the checkbox is checked or not is synchronized with whether the deformation controls for the first node in the Target Nodes list are displayed or hidden. This means that displaying the deformation controls for the first node in the Target Nodes list will check the checkbox, and hiding them will uncheck the checkbox, but showing or hiding the deformation controls for any of the other nodes in the Target Nodes list will not update the state of the Checkbox widget.