ruinlee
(ruinlee)
1
Is it possible to add a boolean type property to a object under the custom properties panel ?
Whatever I do this with script like:
object[‘IsABoolean’] = scn.IsABoolean
or by click “Add” under custom properties panel and type True to property value…
System come-up with a int type property…
CoDEmanX
(CoDEmanX)
2
You can set min=0, max=1 and give it a value of 0, 1, True or False. bool() can cast it to a boolean, 1 will be True and 0 False.
If you want a property that displays a checkbox, use bpy.props.BoolProperty() and add it to a panel:
http://www.blender.org/api/blender_python_api_2_75_release/bpy.props.html