I have a small window I'm building, and I'm having trouble getting a slider group to sit to the immediate right of some check boxes. It simply disappears from the row.
I've made the third column pretty huge to try and accommodate it just in case.
def slider_drag_callback(*args):
print 'Slider Dragged'
window = cmds.window()
cmds.columnLayout()
cmds.rowColumnLayout(nc=2, cw=[(1, 50), (2, 40), (3, 300)])
cmds.checkBox(l="Trans")
cmds.checkBox(l="Rot")
cmds.floatSliderGrp(label="Sldr", field=True, value=0, dc=slider_drag_callback)
cmds.setParent('..')
cmds.showWindow(window)
您差不多就可以了,您将列数设置为 2,而不是 3。这是 rowColumnLayout 中的nc参数。
cmds.rowColumnLayout(nc=3, cw=[(1, 50), (2, 40), (3, 300)])
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.