Row Spacing In Rowcolumnlayout

Hello,

I'm working on a window, and have the following:

CODE
frameLayout -w 340 -cll 1 -cl 1 -ann "Custom Additions that can be made to the advSkeleton" "Rig Mods";
    columnLayout;
        separator -st "none" -h 13;    
        rowColumnLayout -rs 1 1 -nc 4 -cw 1 15
                        -cs 2 1
                        -cs 3 1
                        -cs 4 1;
            separator -style "none";
            button -l "Facial Setup" -ann "Create Attributes and SDK's for Facial Animation" sdFacialAnimButton;
            button -l "Anim Transfer" -ann "Transfer & Scale Animation Curves Between Rigs" sd_dkAnimButton;
            button -l "Wire Cntrls" -ann "Create Wire Controllers for Rig Modification" rig101WiresButton;
            separator -style "none";
            button -l "New Bind Pose" -ann "Create a new Bind Pose for the Rig" sdNewBindPoseButton;
        setParent ..;
setParent ..;

But, I get an error saying that it's an "invalid row" for the -rowSpacing flag in the rowColumnLayout. It says in the documentation that you need to specify a valid row in the 1-based row index before specifying the space, but neither 1,2,3 etc. or 0 (which I know shouldn't work anyway) is considered a valid row index. Any ideas?

Your problem lies in the use of the rowSpacing flag. I don't think you can specify both values for columns and rows, the layout must be either a row or column format.
Try changing the following:

rowColumnLayout -nc 4 -cw 1 15 -cs 2 1 -cs 3 1 -cs 4 1;

The Maya Docs say this:

QUOTE
-rowSpacing(-rs) int int create, edit, multiuse
The space between rows, in pixels. In row format this specifies the space above the specified row. In column format it specifies the space between all rows, however a valid row index is still required. The first argument is the 1-based row index. The second argument must be greater than 0 and specifies the spacing.

So it can be specified, I just can't find a valid array number...

rowColumnLayout is a load of old crap. if I were you I'd ditch it and use a for..loop to create a bunch of rowLayouts in a columnLayout. yeah it's a bit more work but it's far more versatile. rowColumnLayout doesn't even support adjustable columns ffs...

:nathaN

Yeah, that's what I ended up doing in the end, I was just wondering why it wasn't working. I just get kinda tired having to figure out workarounds for things that should work in Maya. I ended up making two rowlayouts, and its preeeeetty.... Thanks.