select folder - write variable - show in textfield - beginner needs help
i'm new to maxscript and i'm trying just a easy thing(not easy for me but for the professionals here yes) I want to create a rollout with a button "browse", where I can select a folder. for example c:\user\desktop\maps\. This path should be stored as a variable (and need it for an later action in the script) and should be shown in my edittext box and the user should be able to select and copy the path. for now it's half working with the attached script. But if I press a second time on the button "Browse" I can select another folder for example d:\materials the script changes the variable (for testing I used the print function) but did NOT show it in my edittext?Is there a kind of autoupdate function?
Is there anyone out there how can help me ???
thanks a lot in advanced and greetings chris
rollout xx "Maps Path" width:800 height:496
button btn_browse "Browse" pos: [124,10] width:60 height:16
label choose "select maps path " pos:[8,10] width:112 height:16
on btn_browse pressed do
dir = getSavePath caption:"Select Folder" initialDir:#images
edittext theedittextt "Path" text:dir
rof=newrolloutfloater "Test"800 600
addRollout xx rof rolledUp:false