textFieldButtonGrp Maya #mel #button

jayantbhatt07
Advocate

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
Reply
Accepted solutions (1)
626 Views
1 Reply
Reply (1)

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 ;
}