gui.py 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. import bpy
  2. from bpy.types import Operator
  3. class BSI_PP_home_op(Operator):
  4. """BL Mesh Edit"""
  5. bl_idname = "bsi.pp_home_op"
  6. bl_label = "BSI Home Panel"
  7. bl_options = {'REGISTER'}
  8. def execute(self, context):
  9. bpy.ops.bsi.view3d_dynamic_prop_panel(panel = "BSI_PP_home")
  10. return {'FINISHED'}
  11. class BSI_PP_motiontracking(Operator):
  12. """BSI Motiontracking Panel Op"""
  13. bl_idname = "bsi.panel_motiontracking"
  14. bl_label = "Motiontracking Panel"
  15. bl_options = {'REGISTER'}
  16. def execute(self, context):
  17. bpy.ops.bsi.view3d_dynamic_prop_panel(panel = "VIEW3D_PP_motiontracking")
  18. return {'FINISHED'}
  19. class BSI_PP_viewproperties(Operator):
  20. """BSI View Properties Panel"""
  21. bl_idname = "bsi.panel_viewproperties"
  22. bl_label = "View Properties Panel"
  23. bl_options = {'REGISTER'}
  24. def execute(self, context):
  25. bpy.ops.bsi.view3d_dynamic_prop_panel(panel = "VIEW3D_PP_viewproperties")
  26. return {'FINISHED'}
  27. class VIEW3D_PP_meshproperties(Operator):
  28. """BSI Mesh Properties Panel"""
  29. bl_idname = "bsi.panel_meshproperties"
  30. bl_label = "Mesh Properties Panel"
  31. bl_options = {'REGISTER'}
  32. def execute(self, context):
  33. bpy.ops.bsi.view3d_dynamic_prop_panel(panel = "VIEW3D_PP_meshproperties")
  34. return {'FINISHED'}
  35. class BSI_TP_meshedit_op(Operator):
  36. """BL Mesh Edit"""
  37. bl_idname = "bsi.panel_meshedit"
  38. bl_label = "Mesh Edit Panel"
  39. bl_options = {'REGISTER'}
  40. def execute(self, context):
  41. bpy.ops.bsi.view3d_dynamic_tool_panel(panel = "VIEW3D_TP_meshedit")
  42. return {'FINISHED'}
  43. class BSI_TP_greasepencil_op(Operator):
  44. """BL Gease Pencil Panel"""
  45. bl_idname = "bsi.panel_greasepencil"
  46. bl_label = "Grease Pencil Panel"
  47. bl_options = {'REGISTER'}
  48. def execute(self, context):
  49. bpy.ops.bsi.view3d_dynamic_tool_panel(panel = "VIEW3D_TP_greasepencil")
  50. return {'FINISHED'}
  51. class BSI_TP_rigidbody_op(Operator):
  52. """BL Rigid Body Panel"""
  53. bl_idname = "bsi.panel_rigidbody"
  54. bl_label = "Rigid Body Panel"
  55. bl_options = {'REGISTER'}
  56. def execute(self, context):
  57. bpy.ops.bsi.view3d_dynamic_tool_panel(panel = "VIEW3D_TP_rigidbody")
  58. return {'FINISHED'}
  59. class BSI_TP_animation_op(Operator):
  60. """BL Animation Panel"""
  61. bl_idname = "bsi.panel_animation"
  62. bl_label = "Animation Panel"
  63. bl_options = {'REGISTER'}
  64. def execute(self, context):
  65. bpy.ops.bsi.view3d_dynamic_tool_panel(panel = "VIEW3D_TP_animation")
  66. return {'FINISHED'}
  67. class BSI_TP_relation_op(Operator):
  68. """BL Relation Panel"""
  69. bl_idname = "bsi.panel_relation"
  70. bl_label = "Relation Panel"
  71. bl_options = {'REGISTER'}
  72. def execute(self, context):
  73. bpy.ops.bsi.view3d_dynamic_tool_panel(panel = "VIEW3D_TP_relation")
  74. return {'FINISHED'}
  75. class VIEW3D_TP_addobject(Operator):
  76. """BL Add Object Panel"""
  77. bl_idname = "bsi.panel_addobject"
  78. bl_label = "Add Object Panel"
  79. bl_options = {'REGISTER'}
  80. def execute(self, context):
  81. bpy.ops.bsi.view3d_dynamic_tool_panel(panel = "VIEW3D_TP_addobject")
  82. return {'FINISHED'}