def setClipUI(*args):
""" UI for the whole thing"""
if cmds.window("SCPwin", exists=True):
cmds.deleteUI("SCPwin")
cmds.window("SCPwin", t="Set Clip Planes", w=200, h=100)
cmds.columnLayout("colLO")
cmds.radioButtonGrp("camRBG", l="Cameras:", nrb=2, l1="All", l2="Selected", sl=1, cal=[(1,"left"),(2,"left"),(3,"left")], cw=[(1,70),(2,50),(3,50)])
cmds.floatFieldGrp("nearFFG", l="nearClip", v1=1, cal=([1,"left"], [2,"left"]), cw=([1,50], [2,150]))
cmds.floatFieldGrp("farFFG", l="farClip", v1=100000, cal=([1,"left"], [2,"left"]), cw=([1,50], [2,150]))
cmds.separator(h=10,style="single")
cmds.button("button", l="Set Clip Planes", h=50, w=200, bgc=(.8, .6,.6), c=setPlanes)
cmds.showWindow("SCPwin")
cmds.window("SCPwin", e=True, w=200, h=100)
评论列表
文章目录