# Custom Toggles

Here I'll teach you how to use the custom toggles found under `Controls > Workflow`.



If your rig has a feature that you want to integrate into the rig then this is the place to do it, it's not that hard however it's easy to mess it up so read carefully.

To begin we will decide which toggle we want to use, for a full in-depth guide on them read [this](https://darthlilo.gitbook.io/ice-cube/features/main/general-settings). In our case we're going to be using `Toggle 2` as we do not want it on by default.



I want our custom toggle to toggle the visibility of my custom mesh so we're going to click on the mesh and go to the object properties panel.

Next we're going to find the `Visibility` expandable and open it, you should now see two check boxes inside of it named `Viewports` and `Renders`, those are the two we're going to be working with.

Right-Click on the `Viewports` box and click `Add Driver` and then at the bottom click `Show in Drivers Editor`. (If you accidentially closed the menu or something right-click again on the button and click `Open Drivers Editor`)

![](https://2839598700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK31Q1ZUbHlWrbFxIrdas%2Fuploads%2FzUyJ75Zx29dltf4ij29h%2Fimage.png?alt=media\&token=4ed66b24-66df-45e6-a0db-47664a365abe)

We're now going to replace `var + False` with our own code just called `1 - var`.  (This will make sure its hidden by default)

Next change the type of variable to single property.

![](https://2839598700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK31Q1ZUbHlWrbFxIrdas%2Fuploads%2FpQF9kFz5bGIZ2OQY0G2X%2Fimage.png?alt=media\&token=15e85029-f213-4307-b3ad-e5311349f419)![](https://2839598700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK31Q1ZUbHlWrbFxIrdas%2Fuploads%2FhKozKuX2qCpUWfXm1Lsq%2Fimage.png?alt=media\&token=84bf7206-ed14-4352-9d9e-4eaaa4bc71ee)

In the `Prop:` field select the rig, by default it will be named `Ice Cube v1.1.0`.

A new field should appear named `Path:`, in this field we're going to insert `["NAME"]` and replace `NAME` with our toggle, which is `toggle_2`.

![](https://2839598700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK31Q1ZUbHlWrbFxIrdas%2Fuploads%2FA3U0TC1PLkt1Tqpz7JSZ%2Fimage.png?alt=media\&token=4c5f842e-d364-434f-ad25-fe665af19d4f)

The final step is to right-click on the `Viewports` button again, click `Copy Driver`, right-click on the `Renders` button and select `Paste Driver`
