Hi, I'm not able to align the buttons properly in the layout. Can anyone help me with that?
proc ScreenCaptureWin()
{
global string $rsTxtPath, $rsTxtName;
string $sn = `file -q -sn`;
string $cfp = `dirname( $sn )`;
if (`window -exists ScreenCapture`) //closes window if already open
deleteUI ScreenCapture;
window -title "ScreenCapture" ScreenCapture; //creates window
rowColumnLayout -numberOfColumns 3 -columnAttach 1 "right" 1 -columnWidth 10 10 -columnWidth 50 10;
text -label "Path";
$rsTxtPath = `textField -w 200 -h 28 -tx $cfp -ed true `;
button -w 60 -h 28 -label "Capture" -command "Capture";
rowColumnLayout -numberOfColumns 2 -columnAttach 1 "left" 1 -columnWidth 10 10 -columnWidth 10 10;
text -label "Name";
$rsTxtName = `textField -w 100 -h 28 -ed true `;
// show the window we last created
showWindow;;
}
global proc Capture()
{
global string $rsTxtPath;
global string $rsTxtName;
string $path = `textField -q -tx $rsTxtPath`;
string $FileName = `textField -q -tx $rsTxtName`;
string $rsFileList[] = `getFileList -folder $path`;
int $rsFileCount = size($rsFileList);
string $k = ($path + ("/"+$FileName+".jpg"));
string $ff = ".png";
string $node[] = `ls -sl`;
setAttr "defaultRenderGlobals.imageFormat" 8;
playblast -st 1 -et 1 -v 0 -fmt "image" -qlt 100 -p 100 -w 1000 -h 1000 -fp 0 -cf $k;
clear $node;
}