I’m trying to create a note system that sticks with a max file or is easy to load the notes for another animator from a local folder(the more automated the better).
I am very new to max script and here’s what I’ve got,
if savedData == undefined do global savedData = #() – having truble with what to use for the Array.
if classOf NotesRollout == RolloutClass do DestroyDialog NotesRollout
rollout NotesRollout “Project Notes” width:550 height:450
dotNetControl textboxctrl “System.Windows.Forms.TextBox” pos:[40,16] width:450 height:300
button btnClearAll “Clear All” align:#right
Group “Info:” (
editText edt_path “Location:” align:#left labelOnTop:true
button btnSave “Save” across:3 align:#right
button btnLoad “Load” across:2 align:#right
on NotesRollout open do
textboxctrl.AcceptsReturn = true;
textboxctrl.AcceptsTab = true;
textboxctrl.WordWrap = true;
textboxctrl.Multiline = true;
textboxctrl.ScrollBars = textboxctrl.ScrollBars.Vertical;
on textboxctrl keydown pressedKey do
if (pressedKey.keyvalue == 13) do textboxctrl.paste("\r\n");
on btnSave pressed do --save as a text file that can be opened with plugin in a local directory
folderPath = getSavePath() edt_path.text = folderPath if (dir != undefined) do (folderPathTxt.text = dir) out_name = "" out_file = createfile out_name
on btnLoad pressed do --open notes that relate to this file ( would love to make this load relating to file name from start up ) and deletes the old textbox text
folderPath = getSavePath()
on btnClearAll pressed do – clear all data fields (struggling to define text in text box)
delete savedData textboxctrl.text = savedData
I’m having trouble creating the text file and then being able to load it and actually clear the text field.
Would anyone have any suggestions as to what I am doing wrong for pointing to the text field in a dotNet?
and then how to export/load the text?
Thank you in advance for all your help.