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