SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.


SM Forums / Maya Questions / Programming / How to Remove Extra space between layouts #MEL

Programming MEL Scripts, Expressions & Programming Related Topics

Join the conversation. Reply to post
 
Thread Tools
16-02-2020, 10:08 AM   #1
jayantbhatt1997
Registered User
 
Join Date: Aug 2019
Posts: 2
How to Remove Extra space between layouts #MEL
Hi can anyone tell me how can I remove the extra space between these two layouts ( Check screenshot)


Name:  Capture.PNG
Views: 43
Size:  12.3 KB




if ( `window -exists "nameWindowss"` ) {
deleteUI "nameWindowss"; windowPref -remove "nameWindowss";
}


window -title "3DG NUT" -s 0 -widthHeight 200 145 "nameWindowss";

frameLayout -cll 0 -li 170 -labelVisible 0 -bgc 0.25 0.25 0.25;
rowLayout -numberOfColumns 2;

setParent;
setParent;
setParent;

columnLayout -adjustableColumn true;
button -w 85 -h 20 -label " DONATE " -bgc 0.1 0.1 0.1 -command "defaultButtonPush";

setParent ..;


optionMenu -w 108 -h 18 -changeCommand "GlobalResize" -bgc 0.1 0.1 0.1 ThmbnlSwitch;
menuItem -label "Default Thumb" -p ThmbnlSwitch;
menuItem -label "Large Thumbnails" -p ThmbnlSwitch;
menuItem -label "Small Thumbnails" -p ThmbnlSwitch;

setParent;
setParent..;



//--------------------------------------------------------------


string $form = `formLayout`;
string $tabs = `tabLayout -innerMarginWidth 10 -innerMarginHeight 30`;

formLayout -edit
-attachForm $tabs "top" 0
-attachForm $tabs "left" 0
-attachForm $tabs "bottom" 0
-attachForm $tabs "right" 0
$form;

string $child0 = `rowColumnLayout -numberOfColumns 5`;
symbolButton -image "mayabutton.png" -command "sample_Proc";
symbolButton -image "mayabutton.png" -command "sample_Proc";
symbolButton -image "mayabutton.png" -command "sample_Proc";
symbolButton -image "mayabutton.png" -command "sample_Proc";
symbolButton -image "mayabutton.png" -command "sample_Proc";
symbolButton -image "mayabutton.png" -command "sample_Proc";
setParent ..;

string $child1 = `rowColumnLayout -numberOfColumns 5`;
symbolButton -image "mayabutton.png" -command "sample_Proc";
symbolButton -image "mayabutton.png" -command "sample_Proc";
symbolButton -image "mayabutton.png" -command "sample_Proc";
symbolButton -image "mayabutton.png" -command "sample_Proc";
symbolButton -image "mayabutton.png" -command "sample_Proc";
symbolButton -image "mayabutton.png" -command "sample_Proc";
setParent ..;

string $child2 = `rowColumnLayout -numberOfColumns 3`;
button; button; button;
button; button; button;
setParent ..;

tabLayout -edit
-tabLabel $child0 " aaaa " -tabLabel $child1 " bbb " -tabLabel $child2 " bnbn "
$tabs;

setParent ..;
setParent ..;


showWindow;
  Reply with quote
Reply

Tags
maya , mel

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Import External File - MEL? jayantbhatt007 Maya Technical Issues 0 11-08-2019 03:11 PM
Set rotate to zero with MEL Vatica Programming 0 19-11-2018 02:36 PM
Is the I9 - 9900x worth the extra 378 over a I7 - 9800x for a rendering, CAD,Editing Spikeysonic Maya Basics & Newbie Lounge 0 17-11-2018 01:25 PM
Normal Map definitions djwaterman Lighting & Rendering 2 25-05-2012 12:50 PM
Is anyone using MEL? dannyngan Programming 40 29-01-2003 10:21 PM