I'm trying to make an option in my UI similar to the PSDfiletexture node where I have a button that opens a dialog box so you can search for a PSD. I have it working, and when i print my result it prints correctly, but how do i then take that result and put it in the textFieldGrp so the user can see/edit the file that has been loaded??? Thanks for any help!! -DD
////////////////
showWindow TheWindow;
if ( window -exists TheWindow
) { deleteUI -window TheWindow; }
window -w 360 -sizeable 1 -menuBar true -title "myWindow" TheWindow;
columnLayout -adjustableColumn true;
button -label "Find File" -command "importImage";
columnLayout ;
$Path = textFieldGrp -w 360 -label "Path"
;
showWindow TheWindow;
///////////////////////////////////////
proc importImage (){
string $basicFilter = "*.psd";
string $result[] = fileDialog2 -fileMode 4 -fileFilter $basicFilter -dialogStyle 1
;
print $result;
};