Home Technical Talk
The BRAWL² Tournament Challenge has been announced!

It starts May 12, and ends Sept 12. Let's see what you got!

https://polycount.com/discussion/237047/the-brawl²-tournament

Max Script - String/Boolean

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
  1. 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

Sign In or Register to comment.