Game Development Reference
In-Depth Information
3. So that the icon stays with the actual rig as it moves, point-constrain it to the root
joint. Select the root joint and then, holding Shift, add the visibility icon to the se-
lection. Go to Constrain > Point, making sure Maintain Offset is enabled.
Now that the icon is in place and fixed to the rig, we can start to add attributes to it
that will control the other icons' visibility. Think carefully about what you want to
be able to control. In this case, let's add the ability to turn all the icons on and off;
we can add that control to the actual geometry, too.
4. Add two Boolean attributes to the KilaVisibility icon, called AllIcons and
AllGeom. We can also add the ability to simply view the icons in certain regions.
Add another three Boolean attributes called LeftIcons, MiddleIcons, and RightI-
cons.
Think of other visibility controls you'd like to have: Maybe you would like to control each
icon separately? Feel free to add more if you want. Otherwise, let's go ahead and connect
up the ones we've added so far.
1. Open the Connection Editor (Window > General Editors > Connection Editor).
2. Select the KilaVisibility icon, and click the Reload Left button to load the icon into
the Outputs list. In the Inputs list, load the Kila_Controls group.
3. As shown in Figure 12.75a , connect the AllIcons attribute to the Visibility attrib-
ute.
Search WWH ::




Custom Search