Working Checklist
It would be cool to have a checklist that people could easily edit and use.
Here is a basic checklist I have for anyone to use and build from.
Wishlist Features:
Add button + adds addition checklist statements that are written in text box
Remove button - revmoves that checklists object from the dialog
as the buttons are use the dialog expands and contracts.
the add and remove buttons do not work yet.
Thanks
JokerMartini
rollout rlChecklist "Check List" ( button btnAdd "+" width:17 height:17 pos:[0,0] editText etToDoList "" fieldwidth:152 pos:[13,0] label lbDivide "- - - - - - - - - - - - - - - - - - - - - - - -" pos:[2,18] label lb1 "Render Resolution" pos:[67,40] label lb2 "Motion Blur" pos:[67,62] checkbox ckbx1 "" pos:[36,39] width:12 enabled:false checkbox ckbx2 "" width:12 pos:[36,61] enabled:false button btn1 "O" width:24 height:24 pos:[6,32] button btn2 "O" width:24 height:24 pos:[6,56] button btn1delete "-" width:13 height:13 pos:[51,40] button btn2delete "-" width:13 height:13 pos:[51,62] label lbDivide2 "- - - - - - - - - - - - - - - - - - - - - - - -" pos:[2,80] button btnClear "Clear" width:138 height:24 on btn1 pressed do ( ckbx1.checked = true ) on btn2 pressed do ( ckbx2.checked = true ) on btnClear pressed do ( ckbx1.checked = ckbx2.checked = false ) ) createDialog rlChecklist 170 130
Comments
Tweaked
You mentioned on your site that is says a seperate file for each user? What do you mean by that exactly? Does the checklist save with the max file is that what you mean? if so is it a unique file for each max scene?
It simply saves the file in current user's folder so when someone else is logged in and runs it, your tasks stay intact. This can be changed by altering local file_name = ... – for example switching "\\to-do.list" for "\\to-do" + maxFileName + ".list". That would make a new file for every file you open when evaluated; when working on a new scene without any filename the file would stay as it is now. This is more a lazy hack than a real solution, there are many ways to achieve that but with most of them you lose your data when the scene is unsaved. It always depends on what you want to achieve.
It is a big finiky when i select the items in the list. It automatically unchecks stuff. Maybe its just me. Let me know what you think.
Yeah, that's an old bug in listview, for more info you can look here: CGTalk :: Selecting multiple items toggles the checked states I'm attaching updated version with the solution posted there implemented in it:
Some of my scripts and MCGs :: 3ds Max SDK Intro for Scripters
Thanks
That is great. The bug is a rather annoying little thing. I'm glad there is a solution for it. Thanks for the revised version with the addition fixes.
I'm going to further develop this script for a more stream line use!
I'll be sure to keep you in the loop.
John Martini
Digital Artist
http://www.JokerMartini.com (new site)
cool
i like this
John Martini
Digital Artist
http://www.JokerMartini.com (new site)
Tweaks
It is a big finiky when i select the items in the list. It automatically unchecks stuff. Maybe its just me. Let me know what you think.
John Martini
Digital Artist
http://www.JokerMartini.com (new site)
Questions?
You mentioned on your site that is says a seperate file for each user? What do you mean by that exactly?
Does the checklist save with the max file is that what you mean? if so is it a unique file for each max scene?
John Martini
Digital Artist
http://www.JokerMartini.com (new site)
Excellent!
Excellent script SwordSlayer. Thank you very much for the script. It is better than what I could have thought of. I'm not to familiar with dotNet controls, but because of this I'm going to get into learning them.
Thanks again.
JokerMartini
John Martini
Digital Artist
http://www.JokerMartini.com (new site)
to-do list
Just for the fun of it, I added some bsic functionality and automatic saving of the entered tasks. You can have a look at Blog Entry :: Simple to-do list if you're interested.
Some of my scripts and MCGs :: 3ds Max SDK Intro for Scripters
Real-life example
This should get you started:
Some of my scripts and MCGs :: 3ds Max SDK Intro for Scripters
If it's only checklist, why
If it's only checklist, why not use .NET listview with checkboxes instead (ctrl_name.CheckBoxes = true)? I guess you're already aware of the fact that you can't add any new buttons to a rollout after you've created it (you can either predeclare given number of controls and have them hidden and only show them when needed or use .NET forms/controls, that allow this kind of behaviour).
Some of my scripts and MCGs :: 3ds Max SDK Intro for Scripters