This question is for Blender 2.8.
I am trying to figure out how to create a boolean and float property classes that I can add as a check-boxes or number values to a panel I’ve created with a script.
I used to create a new property class like shown below in Blender 2.79. But this no longer works for Blender 2.8.
#checkbox bool property for smoke particles my_bool = BoolProperty( name="Enable or Disable", description="Smoke Particles", default = False )
Then I would add the checkbox to my code using the following lines in a added panel.
layout = self.layout scene = context.scene self.layout.prop(scene.my_tool, "my_bool")