textFieldButtonGrp Maya #mel #button

textFieldButtonGrp Maya #mel #button

jayantbhatt07
Advocate Advocate
968 Views
1 Reply
Message 1 of 2

textFieldButtonGrp Maya #mel #button

jayantbhatt07
Advocate
Advocate

Hi, How can I use that browse button or assign command to the button, when I click on it, It should set the path? Any Idea string $window = `window`; columnLayout; textFieldButtonGrp -label "path" -buttonLabel "Browse"; showWindow $window;

0 Likes
Accepted solutions (1)
969 Views
1 Reply
Reply (1)
Message 2 of 2

rajasekaransurjen
Collaborator
Collaborator
Accepted solution

Hi,

Try this....

$window = `window`; 
columnLayout; 
textFieldButtonGrp -label "path" -buttonLabel "Browse" -bc rsFileDialog rsTxtFld; 
showWindow $window;

proc rsFileDialog()
{
    string $rsPath[] = `fileDialog2 -ds 1 -fm 3`;
    textFieldButtonGrp -e -tx $rsPath[0] rsTxtFld ;
}