Advertisement
Guest User

Untitled

a guest
May 30th, 2015
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. bl_info = {
  2. # ...
  3. }
  4.  
  5. if "bpy" in locals():
  6. import imp
  7. imp.reload(op1)
  8. imp.reload(op2)
  9. else:
  10. from . import op1
  11. from . import op2
  12.  
  13. import bpy
  14.  
  15. def menu_func(self, context):
  16. self.layout.separator()
  17. self.layout.menu(op1.Operator_1.bl_idname)
  18. self.layout.menu(op2.Operator_2.bl_idname)
  19.  
  20.  
  21. def register():
  22. bpy.utils.register_module(__name__)
  23. bpy.types.VIEW3D_MT_uv_map.append(menu_func)
  24.  
  25. def unregister():
  26. bpy.utils.unregister_module(__name__)
  27. bpy.types.VIEW3D_MT_uv_map.remove(menu_func)
  28.  
  29.  
  30. if __name__ == "__main__":
  31. register()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement