little problem with textfield


#1

Hello
I have a mel scriot with a textfield with what i want when user select an object it’s name appear directly in the textfield.
I use this lines to update the textfield with a button


string $selObj[] = `ls -sl` ; 
 textField -e -text $selObj[0] selectedObject ;
  

but this is not what i want. i search how without a button textfield can automaticaly update with the new user selection.


#2

Have a look at scriptJob command. With this command you can register command which should be exectued as soon as you change selection.


#3

thank you haggi problem resolved .