def buildToolsMenu(self, *a): menu = self.getMenu('Tools') menu.clear() MelMenuItem(menu, l='Pose Mirroring Tool', c=self.on_loadMirrorTool) MelMenuItemDiv(menu) enableState = rigUtils.getSkinClusterEnableState() MelMenuItem(menu, l='Space Switching Tool', c=lambda *a: spaceSwitchingUI.SpaceSwitchingWindow()) MelMenuItem(menu, l='Stand Alone Rig Builder Tool', c=lambda *a: RigBuilderWindow()) MelMenuItem(menu, l='Control Creation Tool', c=lambda *a: ControlBuildingWindow()) MelMenuItemDiv(menu) MelMenuItem(menu, l='Mark Selected As User Aligned', c=self.on_markUserAligned) MelMenuItem(menu, l='Clear User Aligned On Selected', c=self.on_clearUserAligned) MelMenuItem(menu, l='User Aligned Editor', c=lambda *a: UserAlignListerWindow())
def buildToolsMenu(self, *a): menu = self.getMenu('Tools') menu.clear() MelMenuItem( menu, l='Bone Count HUD', cb=headsUpDisplay(rigPrimitives.HUD_NAME, ex=True), c=lambda *a: rigPrimitives.setupSkeletonBuilderJointCountHUD()) MelMenuItem(menu, l='Pose Mirroring Tool', c=self.on_loadMirrorTool) MelMenuItemDiv(menu) enableState = rigUtils.getSkinClusterEnableState() MelMenuItem(menu, l='Space Switching Tool', c=lambda *a: spaceSwitchingUI.SpaceSwitchingWindow()) MelMenuItem(menu, l='Stand Alone Rig Builder Tool', c=lambda *a: RigBuilderWindow()) MelMenuItem(menu, l='Control Creation Tool', c=lambda *a: ControlBuildingWindow()) MelMenuItemDiv(menu) MelMenuItem(menu, l='Mark Selected As User Aligned', c=self.on_markUserAligned) MelMenuItem(menu, l='Clear User Aligned On Selected', c=self.on_clearUserAligned) MelMenuItem(menu, l='User Aligned Editor', c=lambda *a: UserAlignListerWindow())