Hi guys, I'm new at maxscript so forgive me if this is something simple! I've written a script that has some checkbox options on an options floater. When the floater is closed I write the setting of the checkboxs to a settings ini file which all works fine.
The problem I'm having is loading the state of the checkboxes initially from the ini file.
I've used
checkbox chk1 "Export FLT" checked:(ExportState)
Where ExportState is either true or false as pulled in from the ini file. It gives the error:
Type error: checked: requires BooleanClass, got: "true"
Am I getting this problem because it's recognising true or false as strings rather than booleans and how would I fix this?
Cheers Eddy
Replies
I think it was reading it as a string rather than a boolean. Adding this works: