Checkboxes Maxscript
How can i make the button on top toggle all checkboxes to either all be true or alll be false disgarding what their current checkstate is.
Like a toggle button.
rollout test "test" ( button btnCheck "Check" checkbox ckbx1 "Stuff" checked:false checkbox ckbx2 "Option" checked:true checkbox ckbx3 "Anything" checked:true checkbox ckbx4 "Junk" checked:false on btnCheck pressed do ( ) ) createDialog test 150 140
Comments
This is how I've been doing it lately
First name your buttons internal name something that makes sense. If it's for affecting geo then put geo in there and mat for material so you can matchpattern of the control and turn it off depending on your button name.
Something like this:
Or use this to avoid problems
Or use this to avoid problems with checkbox names:
Tools and Scripts for Autodesk 3dsMax
How can we make the
How can we make a Checkbutton turn off when we click in other tool?
Sorry. I post this in the wrong Topic.
You can create a function to
You can create a function to shorten the writing on this case, such:
Or you can just collect the
Or you can just collect the checkboxes on dialog creation and check them en masse without having to rewrite the function every time you add or remove a checkbox:
Some of my scripts and MCGs :: 3ds Max SDK Intro for Scripters
Or you can only use
Or you can only use "ckbx.state = true"
lol.. my maxscript knolowedge is pretty basic.. so i dont usually use functions and complex commands