Maya Python:GridLayout - 每个单元格的宽度不同

Maya Python: GridLayout - Different width per Cell

所以我想弄清楚如何在 Maya 中使用网格布局,其中同一行中的 2 个单元格宽度不同。

我尝试在 cellWidth 标志中索引单元格,但没有成功。 这是我目前所拥有的:

cmds.gridLayout( numberOfColumns=2, cellWidthHeight=(50, 40) )

我想要这样的东西:

cmds.gridLayout( numberOfColumns=2, cellWidthHeight=([1]=50, 40), [2]=100, 40) )

有人知道吗?

问候 戴夫

[已解决]

哇,我好傻。 更简单的解决方案是单独调整 Layout 中每个控件的 heightwidth,因为您只需设置 heightwidth按钮或 intField