1
所以我想弄清楚如何在maya中有一个gridlayout,其中同一行中的2个单元格的宽度不同。Maya Python:GridLayout - 每个单元格的宽度不同
我尝试索引cellWidth标志中的单元格,但没有成功。 这是我到目前为止有:
cmds.gridLayout(numberOfColumns=2, cellWidthHeight=(50, 40))
和这样的事情是什么,我想:
cmds.gridLayout(numberOfColumns=2, cellWidthHeight=([1]=50, 40), [2]=100, 40))
任何人有一个想法?
问候 戴夫
我看着[rowColumnLayout](HTTP: //download.autodesk.com/us/maya/2009help/CommandsPython/rowColumnLayout.html),它说你可以像'cmds.rowColumnLayout(numberOfColumns = 2,columnWidth = [(1,50),(2,100) ])',不同大小的宽度,但它似乎你也想要不同的高度? – davedwards
谢谢。你是对的,rowColumLayout确实有一个rowHight标志,但它总是告诉我:行高对垂直方向布局没有意义 – dave