select folder - write variable - show in textfield - beginner needs help
Hi everybody.
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
print dir
)
edittext theedittextt "Path" text:dir
)
rof=newrolloutfloater "Test"800 600
addRollout xx rof rolledUp:false
Comments
perfect... solved
thanks a lot this works very fine :) this was exactly I was looking for :)
now I can finish my script and start my xmas holiday :)
merry xmas to all
Hi, I am not sure that i
Hi,
I am not sure that i understand, but is it something like this you want:
/ Raymond
by the way
hey raymond by the way .. nice homepage :)