Advertisement
Guest User

Untitled

a guest
May 31st, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. class ToolsPanel(bpy.types.Panel):
  2. bl_label = "AI Generator"
  3. bl_space_type = "VIEW_3D"
  4. bl_region_type = "TOOLS"
  5.  
  6. def __init__(self):
  7. print("TOOLS PANEL INIT")
  8. self.safeWidth = FloatProperty(name = "Safe Width",
  9. description = "Width of AI safe route",
  10. default = 14,
  11. min = 0,
  12. max = 1000)
  13.  
  14. self.routeWidth = FloatProperty(name = "Route Width",
  15. description = "Width of overall AI route",
  16. default = 20,
  17. min = 0,
  18. max = 1000)
  19.  
  20. self.raceWidth = FloatProperty(name = "Race Width",
  21. description = "Width of AI race route",
  22. default = 10,
  23. min = 0,
  24. max = 1000)
  25. def draw(self, context):
  26. obj = context.object
  27. layout = self.layout
  28.  
  29. layout.prop(self, "safeWidth")
  30. layout.prop(self, "routeWidth")
  31. layout.prop(self, "raceWidth")
  32.  
  33. self.layout.operator("hello.hello")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement