Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ToolsPanel(bpy.types.Panel):
- bl_label = "AI Generator"
- bl_space_type = "VIEW_3D"
- bl_region_type = "TOOLS"
- def __init__(self):
- print("TOOLS PANEL INIT")
- self.safeWidth = FloatProperty(name = "Safe Width",
- description = "Width of AI safe route",
- default = 14,
- min = 0,
- max = 1000)
- self.routeWidth = FloatProperty(name = "Route Width",
- description = "Width of overall AI route",
- default = 20,
- min = 0,
- max = 1000)
- self.raceWidth = FloatProperty(name = "Race Width",
- description = "Width of AI race route",
- default = 10,
- min = 0,
- max = 1000)
- def draw(self, context):
- obj = context.object
- layout = self.layout
- layout.prop(self, "safeWidth")
- layout.prop(self, "routeWidth")
- layout.prop(self, "raceWidth")
- self.layout.operator("hello.hello")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement