MotionBuilder Select Group Controls

Hi everyvone!

I want to made a quick button to select gruop bones in Crig. That helps me to more fast clean mocap.

To fast select on bones/controls I can use the Handle, but what to do, to works with groups?

Thanks for any help.

/Sry for my English

Ok. I use python script to select part of FK bones(Control Rig) and children, then create gruop Left/Right Arm nad Leg.

I find script in SDK do made Buttons, but I don’t now how, to connect a group script to button?
Any can help me? I’m not a programmer.

# Copyright 2009 Autodesk, Inc.  All rights reserved.
# Use of this software is subject to the terms of the Autodesk license agreement 
# provided at the time of installation or download, or which otherwise accompanies
# this software in either electronic or hard copy form.
#
# Script description:
# Create a tool that shows different kind of buttons and their properties.
#
# Topic: FBButton, FBButtonStyle, FBTextJustify, FBButtonLook
#

from pyfbsdk import *
from pyfbsdk_additions import *

# Button creation
def BtnCallback(control, event):
    print control.Caption, " has been clicked!"

def PopulateLayout(mainLyt):
    x = FBAddRegionParam(0,FBAttachType.kFBAttachLeft,"")
    y = FBAddRegionParam(0,FBAttachType.kFBAttachTop,"")
    w = FBAddRegionParam(0,FBAttachType.kFBAttachRight,"")
    h = FBAddRegionParam(25,FBAttachType.kFBAttachNone,"")
    mainLyt.AddRegion("main","main", x, y, w, h)
    lyt = FBHBoxLayout()
    mainLyt.SetControl("main",lyt)
    
    b = FBButton()
    b.Caption = "LeftArm"
    b.Justify = FBTextJustify.kFBTextJustifyRight
    lyt.Add(b,60)
    b.OnClick.Add(BtnCallback)
    
    b = FBButton()
    b.Caption = "RightArm"
    b.Justify = FBTextJustify.kFBTextJustifyRight
    lyt.Add(b,60)
    b.OnClick.Add(BtnCallback)
    
    b = FBButton()
    b.Caption = "LeftLeg"
    b.Justify = FBTextJustify.kFBTextJustifyRight
    lyt.Add(b,60)
    b.OnClick.Add(BtnCallback)
    
    b = FBButton()
    b.Caption = "RightLeg"
    b.Justify = FBTextJustify.kFBTextJustifyRight
    lyt.Add(b,60)
    b.OnClick.Add(BtnCallback)
    
    
def CreateTool():
    # Tool creation will serve as the hub for all other controls
    t = FBCreateUniqueTool("Button Example")
    t.StartSizeX = 400
    t.StartSizeY = 200
    PopulateLayout(t)
    ShowTool(t)
    

CreateTool()

Create Grup.

 group1 = FBGroup('LeftArm')
  selectedModels = FBModelList()
  FBGetSelectedModels(selectedModels)
  for model in selectedModels:
    group1.Items.append(model)