Используйте этот код в качестве отправной точки:
import maya.cmds as cmds
def on1():
cmds.setAttr('pSphere1.visibility', 1)
def on2():
cmds.setAttr('pSphere2.visibility', 1)
def on3():
cmds.setAttr('pSphere3.visibility', 1)
def on4():
cmds.setAttr('pSphere4.visibility', 1)
def on5():
cmds.setAttr('pSphere5.visibility', 1)
def off1():
cmds.setAttr('pSphere1.visibility', 0)
def off2():
cmds.setAttr('pSphere2.visibility', 0)
def off3():
cmds.setAttr('pSphere3.visibility', 0)
def off4():
cmds.setAttr('pSphere4.visibility', 0)
def off5():
cmds.setAttr('pSphere5.visibility', 0)
cmds.window(width=100)
cmds.columnLayout(adjustableColumn=True)
cmds.radioCollection()
rb01 = cmds.radioButton(label='1', onc='on1()', ofc='off1(), off2(), off3(), off4(), off5()', sl=True)
rb02 = cmds.radioButton(label='2', onc='on2()', ofc='off1(), off2(), off3(), off4(), off5()')
rb03 = cmds.radioButton(label='3', onc='on3()', ofc='off1(), off2(), off3(), off4(), off5()')
rb04 = cmds.radioButton(label='4', onc='on4()', ofc='off1(), off2(), off3(), off4(), off5()')
rb05 = cmds.radioButton(label='5', onc='on5()', ofc='off1(), off2(), off3(), off4(), off5()')
cmds.showWindow()
Надеюсь, это поможет.