def update_from_Select(*args): # 변경할 global 변수 global _HIKCharacterNode, _namespace, _Side # 글로벌 변수 초기화 if _updateMode == 1: _HIKCharacterNode = [] _namespace = [] _Side = [] # 선택 _sel = cmds.ls(sl=True) # 선택한게 없음 나감 if not _sel: updateUI() return # 글로벌 변수 조정 _HIKCharacterNode = Gun_Tools.getHIKCharacterNode(_sel) _namespace = Gun_Tools.getNamespace(_sel) _Side = Gun_Tools.getSide(_sel) if _HIKCharacterNode: Gun_Tools.setHIKCharacterNode(_HIKCharacterNode[-1]) # UI Update updateUI()
def selectHIKProperty2State(*args): _HIKProperty2State = [] for _hik in _HIKCharacterNode: _HIKProperty2State.append( Gun_Tools.getHIKProperty2State( _hik ) ) cmds.select( _HIKProperty2State ) mel.eval('AttributeEditor;')
def btnCmd_Rig_displayConnect_arrow(*args): _sel = cmds.ls(sl=True) Gun_Tools.displayConnect_arrow(_sel)
def btnCmd_Rig_FloorContact(*args): Gun_Tools.setFloorContact()