示例#1
0
def register():
    quick_operators.register()
    quick_object_mode.register()
    quick_edit_mode.register()
    quick_sculpt_mode.register()

    bpy.utils.register_module(__name__)
示例#2
0
def register():
    quick_operators.register()
    quick_object_mode.register()
    quick_edit_mode.register()
    quick_sculpt_mode.register()

    bpy.utils.register_module(__name__)
示例#3
0
def register():
   # bpy.utils.register_class(QuickToolsPreferences)

   quick_operators.register()
   quick_object_mode.register()
   quick_edit_mode.register()
   quick_sculpt_mode.register()
   quick_mode_switch.register()
   quick_scene.register()

   kc = bpy.context.window_manager.keyconfigs.addon
   
   # create the mode switch menu hotkey
   km = kc.keymaps.new(name='3D View', space_type='VIEW_3D')
   kmi = km.keymap_items.new('wm.call_menu', 'TAB', 'PRESS', alt=True)
   kmi.properties.name = 'mode.switch_menu' 
   kmi.active = True
   addon_keymaps.append((km, kmi))

   # create the secene options menu hotkey
   km = kc.keymaps.new(name='3D View', space_type='VIEW_3D')
   kmi = km.keymap_items.new('wm.call_menu', 'ACCENT_GRAVE', 'PRESS', shift=True)
   kmi.properties.name = 'scene.quick_options' 
   kmi.active = True
   addon_keymaps.append((km, kmi))

   # create the object mode tools menu hotkey
   km = kc.keymaps.new(name='Object Mode')
   kmi = km.keymap_items.new('wm.call_menu', 'Q', 'PRESS')
   kmi.properties.name = 'object.tools_menu' 
   kmi.active = True
   addon_keymaps.append((km, kmi))

   # create the object mode Display menu hotkey
   km = kc.keymaps.new(name='3D View', space_type='VIEW_3D')
   kmi = km.keymap_items.new('wm.call_menu', 'Q', 'PRESS', shift=True)
   kmi.properties.name = 'object.display_options'
   kmi.active = True
   addon_keymaps.append((km, kmi))

   # create the edit mode tools menu hotkey
   km = kc.keymaps.new(name='Mesh')
   kmi = km.keymap_items.new('wm.call_menu', 'Q', 'PRESS')
   kmi.properties.name = 'mesh.tools_menu'
   kmi.active = True
   addon_keymaps.append((km, kmi))

   # create the sculpt mode tools menu hotkey
   km = kc.keymaps.new(name='Sculpt')
   kmi = km.keymap_items.new('wm.call_menu', 'Q', 'PRESS')
   kmi.properties.name = 'sculpt.tools_menu'
   kmi.active = True
   addon_keymaps.append((km, kmi))
示例#4
0
def register():
    quick_operators.register()
    quick_object_mode.register()
    quick_edit_mode.register()
    quick_sculpt_mode.register()
    quick_mode_switch.register()
    quick_scene.register()

    kc = bpy.context.window_manager.keyconfigs.addon

    # create the mode switch menu hotkey
    km = kc.keymaps.new(name='3D View', space_type='VIEW_3D')
    kmi = km.keymap_items.new('wm.call_menu', 'Q', 'PRESS', alt=True)
    kmi.properties.name = 'mode.switch_menu'
    kmi.active = True
    addon_keymaps.append((km, kmi))

    # create the scene options menu hotkey
    km = kc.keymaps.new(name='3D View', space_type='VIEW_3D')
    kmi = km.keymap_items.new('wm.call_menu',
                              'ACCENT_GRAVE',
                              'PRESS',
                              shift=True)
    kmi.properties.name = 'scene.quick_options'
    kmi.active = True
    addon_keymaps.append((km, kmi))

    # create the object mode tools menu hotkey
    km = kc.keymaps.new(name='Object Mode')
    kmi = km.keymap_items.new('wm.call_menu', 'Q', 'PRESS')
    kmi.properties.name = 'object.tools_menu'
    kmi.active = True
    addon_keymaps.append((km, kmi))

    kmi = km.keymap_items.new('wm.call_menu', 'W', 'PRESS', alt=True)
    kmi.properties.name = 'object.quick_pet_menu'
    kmi.active = True
    addon_keymaps.append((km, kmi))

    # create the object mode Display menu hotkey
    km = kc.keymaps.new(name='3D View', space_type='VIEW_3D')
    kmi = km.keymap_items.new('wm.call_menu', 'Q', 'PRESS', shift=True)
    kmi.properties.name = 'object.display_options'
    kmi.active = True
    addon_keymaps.append((km, kmi))

    # create the edit mode tools menu hotkey
    km = kc.keymaps.new(name='Mesh')
    kmi = km.keymap_items.new('wm.call_menu', 'Q', 'PRESS')
    kmi.properties.name = 'mesh.tools_menu'
    kmi.active = True
    addon_keymaps.append((km, kmi))

    kmi = km.keymap_items.new('wm.call_menu', 'W', 'PRESS', alt=True)
    kmi.properties.name = 'object.quick_pet_menu'
    kmi.active = True
    addon_keymaps.append((km, kmi))

    # create the sculpt mode tools menu hotkey
    km = kc.keymaps.new(name='Sculpt')
    kmi = km.keymap_items.new('wm.call_menu', 'Q', 'PRESS')
    kmi.properties.name = 'sculpt.tools_menu'
    kmi.active = True
    addon_keymaps.append((km, kmi))

    kmi = km.keymap_items.new('wm.call_menu', 'W', 'PRESS')
    kmi.properties.name = 'sculpt.brush_settings_menu'
    kmi.active = True
    addon_keymaps.append((km, kmi))

    kmi = km.keymap_items.new('sculpt.symmetry', 'X', 'PRESS', shift=True)
    kmi.properties.axis = -1
    kmi.active = True
    addon_keymaps.append((km, kmi))

    kmi = km.keymap_items.new('sculpt.symmetry', 'Y', 'PRESS', shift=True)
    kmi.properties.axis = 0
    kmi.active = True
    addon_keymaps.append((km, kmi))

    kmi = km.keymap_items.new('sculpt.symmetry', 'Z', 'PRESS', shift=True)
    kmi.properties.axis = 1
    kmi.active = True
    addon_keymaps.append((km, kmi))
示例#5
0
def register():
    quick_operators.register()
    quick_object_mode.register()
    quick_edit_mode.register()
    quick_sculpt_mode.register()
    quick_mode_switch.register()
    quick_scene.register()

    kc = bpy.context.window_manager.keyconfigs.addon

    # create the mode switch menu hotkey
    km = kc.keymaps.new(name="3D View", space_type="VIEW_3D")
    kmi = km.keymap_items.new("wm.call_menu", "Q", "PRESS", alt=True)
    kmi.properties.name = "mode.switch_menu"
    kmi.active = True
    addon_keymaps.append((km, kmi))

    # create the scene options menu hotkey
    km = kc.keymaps.new(name="3D View", space_type="VIEW_3D")
    kmi = km.keymap_items.new("wm.call_menu", "ACCENT_GRAVE", "PRESS", shift=True)
    kmi.properties.name = "scene.quick_options"
    kmi.active = True
    addon_keymaps.append((km, kmi))

    # create the object mode tools menu hotkey
    km = kc.keymaps.new(name="Object Mode")
    kmi = km.keymap_items.new("wm.call_menu", "Q", "PRESS")
    kmi.properties.name = "object.tools_menu"
    kmi.active = True
    addon_keymaps.append((km, kmi))

    kmi = km.keymap_items.new("wm.call_menu", "W", "PRESS", alt=True)
    kmi.properties.name = "object.quick_pet_menu"
    kmi.active = True
    addon_keymaps.append((km, kmi))

    # create the object mode Display menu hotkey
    km = kc.keymaps.new(name="3D View", space_type="VIEW_3D")
    kmi = km.keymap_items.new("wm.call_menu", "Q", "PRESS", shift=True)
    kmi.properties.name = "object.display_options"
    kmi.active = True
    addon_keymaps.append((km, kmi))

    # create the edit mode tools menu hotkey
    km = kc.keymaps.new(name="Mesh")
    kmi = km.keymap_items.new("wm.call_menu", "Q", "PRESS")
    kmi.properties.name = "mesh.tools_menu"
    kmi.active = True
    addon_keymaps.append((km, kmi))

    kmi = km.keymap_items.new("wm.call_menu", "W", "PRESS", alt=True)
    kmi.properties.name = "object.quick_pet_menu"
    kmi.active = True
    addon_keymaps.append((km, kmi))

    # create the sculpt mode tools menu hotkey
    km = kc.keymaps.new(name="Sculpt")
    kmi = km.keymap_items.new("wm.call_menu", "Q", "PRESS")
    kmi.properties.name = "sculpt.tools_menu"
    kmi.active = True
    addon_keymaps.append((km, kmi))

    kmi = km.keymap_items.new("wm.call_menu", "W", "PRESS")
    kmi.properties.name = "sculpt.brush_settings_menu"
    kmi.active = True
    addon_keymaps.append((km, kmi))

    kmi = km.keymap_items.new("sculpt.symmetry", "X", "PRESS", shift=True)
    kmi.properties.axis = -1
    kmi.active = True
    addon_keymaps.append((km, kmi))

    kmi = km.keymap_items.new("sculpt.symmetry", "Y", "PRESS", shift=True)
    kmi.properties.axis = 0
    kmi.active = True
    addon_keymaps.append((km, kmi))

    kmi = km.keymap_items.new("sculpt.symmetry", "Z", "PRESS", shift=True)
    kmi.properties.axis = 1
    kmi.active = True
    addon_keymaps.append((km, kmi))