2010-04-19 06:20:16 +00:00
|
|
|
# Configuration Maya
|
2010-04-14 06:45:22 +00:00
|
|
|
import bpy
|
|
|
|
|
2010-09-02 04:53:05 +00:00
|
|
|
wm = bpy.context.window_manager
|
2010-10-06 20:29:00 +00:00
|
|
|
kc = wm.keyconfigs.new('maya')
|
2010-04-14 06:45:22 +00:00
|
|
|
|
|
|
|
# Map 3D View
|
2010-08-30 13:50:59 +00:00
|
|
|
km = kc.keymaps.new('3D View', space_type='VIEW_3D', region_type='WINDOW', modal=False)
|
2010-04-14 06:45:22 +00:00
|
|
|
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.manipulator', 'LEFTMOUSE', 'PRESS', any=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.release_confirm = True
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.cursor3d', 'ACTIONMOUSE', 'PRESS')
|
|
|
|
kmi = km.keymap_items.new('view3d.rotate', 'LEFTMOUSE', 'PRESS', alt=True)
|
|
|
|
kmi = km.keymap_items.new('view3d.move', 'MIDDLEMOUSE', 'PRESS', alt=True)
|
|
|
|
kmi = km.keymap_items.new('view3d.zoom', 'RIGHTMOUSE', 'PRESS', alt=True)
|
|
|
|
kmi = km.keymap_items.new('view3d.view_selected', 'NUMPAD_PERIOD', 'PRESS')
|
|
|
|
kmi = km.keymap_items.new('view3d.view_center_cursor', 'NUMPAD_PERIOD', 'PRESS', ctrl=True)
|
|
|
|
kmi = km.keymap_items.new('view3d.fly', 'F', 'PRESS', shift=True)
|
|
|
|
kmi = km.keymap_items.new('view3d.smoothview', 'TIMER1', 'ANY', any=True)
|
|
|
|
kmi = km.keymap_items.new('view3d.rotate', 'TRACKPADPAN', 'ANY', alt=True)
|
|
|
|
kmi = km.keymap_items.new('view3d.rotate', 'MOUSEROTATE', 'ANY')
|
|
|
|
kmi = km.keymap_items.new('view3d.move', 'TRACKPADPAN', 'ANY')
|
|
|
|
kmi = km.keymap_items.new('view3d.zoom', 'TRACKPADZOOM', 'ANY')
|
|
|
|
kmi = km.keymap_items.new('view3d.zoom', 'NUMPAD_PLUS', 'PRESS')
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.delta = 1
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.zoom', 'NUMPAD_MINUS', 'PRESS')
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.delta = -1
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.zoom', 'EQUAL', 'PRESS', ctrl=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.delta = 1
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.zoom', 'MINUS', 'PRESS', ctrl=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.delta = -1
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.zoom', 'WHEELINMOUSE', 'PRESS')
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.delta = 1
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.zoom', 'WHEELOUTMOUSE', 'PRESS')
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.delta = -1
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.view_all', 'HOME', 'PRESS')
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.center = False
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.view_all', 'C', 'PRESS', shift=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.center = True
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_0', 'PRESS')
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.type = 'CAMERA'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_1', 'PRESS')
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.type = 'FRONT'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.view_orbit', 'NUMPAD_2', 'PRESS')
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.type = 'ORBITDOWN'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_3', 'PRESS')
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.type = 'RIGHT'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.view_orbit', 'NUMPAD_4', 'PRESS')
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.type = 'ORBITLEFT'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.view_persportho', 'NUMPAD_5', 'PRESS')
|
|
|
|
kmi = km.keymap_items.new('view3d.view_orbit', 'NUMPAD_6', 'PRESS')
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.type = 'ORBITRIGHT'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_7', 'PRESS')
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.type = 'TOP'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.view_orbit', 'NUMPAD_8', 'PRESS')
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.type = 'ORBITUP'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_1', 'PRESS', ctrl=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.type = 'BACK'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_3', 'PRESS', ctrl=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.type = 'LEFT'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_7', 'PRESS', ctrl=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.type = 'BOTTOM'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.view_pan', 'NUMPAD_2', 'PRESS', ctrl=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.type = 'PANDOWN'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.view_pan', 'NUMPAD_4', 'PRESS', ctrl=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.type = 'PANLEFT'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.view_pan', 'NUMPAD_6', 'PRESS', ctrl=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.type = 'PANRIGHT'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.view_pan', 'NUMPAD_8', 'PRESS', ctrl=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.type = 'PANUP'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.view_pan', 'WHEELUPMOUSE', 'PRESS', ctrl=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.type = 'PANRIGHT'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.view_pan', 'WHEELDOWNMOUSE', 'PRESS', ctrl=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.type = 'PANLEFT'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.view_pan', 'WHEELUPMOUSE', 'PRESS', shift=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.type = 'PANUP'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.view_pan', 'WHEELDOWNMOUSE', 'PRESS', shift=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.type = 'PANDOWN'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.view_orbit', 'WHEELUPMOUSE', 'PRESS', ctrl=True, alt=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.type = 'ORBITLEFT'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.view_orbit', 'WHEELDOWNMOUSE', 'PRESS', ctrl=True, alt=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.type = 'ORBITRIGHT'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.view_orbit', 'WHEELUPMOUSE', 'PRESS', shift=True, alt=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.type = 'ORBITUP'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.view_orbit', 'WHEELDOWNMOUSE', 'PRESS', shift=True, alt=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.type = 'ORBITDOWN'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_1', 'PRESS', shift=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.align_active = True
|
|
|
|
kmi.properties.type = 'FRONT'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_3', 'PRESS', shift=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.align_active = True
|
|
|
|
kmi.properties.type = 'RIGHT'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_7', 'PRESS', shift=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.align_active = True
|
|
|
|
kmi.properties.type = 'TOP'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_1', 'PRESS', shift=True, ctrl=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.align_active = True
|
|
|
|
kmi.properties.type = 'BACK'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_3', 'PRESS', shift=True, ctrl=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.align_active = True
|
|
|
|
kmi.properties.type = 'LEFT'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_7', 'PRESS', shift=True, ctrl=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.align_active = True
|
|
|
|
kmi.properties.type = 'BOTTOM'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.localview', 'NUMPAD_SLASH', 'PRESS')
|
|
|
|
kmi = km.keymap_items.new('view3d.layers', 'ACCENT_GRAVE', 'PRESS')
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.nr = 0
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.layers', 'ONE', 'PRESS', any=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.nr = 1
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.layers', 'TWO', 'PRESS', any=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.nr = 2
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.layers', 'THREE', 'PRESS', any=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.nr = 3
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.layers', 'FOUR', 'PRESS', any=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.nr = 4
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.layers', 'FIVE', 'PRESS', any=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.nr = 5
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.layers', 'SIX', 'PRESS', any=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.nr = 6
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.layers', 'SEVEN', 'PRESS', any=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.nr = 7
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.layers', 'EIGHT', 'PRESS', any=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.nr = 8
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.layers', 'NINE', 'PRESS', any=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.nr = 9
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.layers', 'ZERO', 'PRESS', any=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.nr = 10
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('wm.context_toggle_enum', 'Z', 'PRESS')
|
2010-08-17 07:49:53 +00:00
|
|
|
kmi.properties.data_path = 'space_data.viewport_shade'
|
2010-04-19 06:20:16 +00:00
|
|
|
kmi.properties.value_1 = 'SOLID'
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.value_2 = 'WIREFRAME'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('wm.context_toggle_enum', 'Z', 'PRESS', alt=True)
|
2010-08-17 07:49:53 +00:00
|
|
|
kmi.properties.data_path = 'space_data.viewport_shade'
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.value_1 = 'TEXTURED'
|
|
|
|
kmi.properties.value_2 = 'SOLID'
|
2012-10-10 08:07:28 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.select', 'SELECTMOUSE', 'RELEASE')
|
2012-04-12 13:33:19 +00:00
|
|
|
kmi.properties.extend = False
|
|
|
|
kmi.properties.center = False
|
|
|
|
kmi.properties.object = False
|
|
|
|
kmi.properties.enumerate = False
|
2012-10-10 08:07:28 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.select', 'SELECTMOUSE', 'RELEASE', shift=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.extend = True
|
2012-04-12 13:33:19 +00:00
|
|
|
kmi.properties.center = False
|
|
|
|
kmi.properties.object = False
|
|
|
|
kmi.properties.enumerate = False
|
2012-10-10 08:07:28 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.select', 'SELECTMOUSE', 'RELEASE', ctrl=True)
|
2012-04-12 13:33:19 +00:00
|
|
|
kmi.properties.extend = False
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.center = True
|
2012-04-12 13:33:19 +00:00
|
|
|
kmi.properties.object = False
|
|
|
|
kmi.properties.enumerate = False
|
2012-10-10 08:07:28 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.select', 'SELECTMOUSE', 'RELEASE', alt=True)
|
2012-04-12 13:33:19 +00:00
|
|
|
kmi.properties.extend = False
|
|
|
|
kmi.properties.center = False
|
|
|
|
kmi.properties.object = False
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.enumerate = True
|
2012-10-10 08:07:28 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.select', 'SELECTMOUSE', 'RELEASE', shift=True, ctrl=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.extend = True
|
2012-04-12 13:33:19 +00:00
|
|
|
kmi.properties.center = True
|
|
|
|
kmi.properties.object = False
|
|
|
|
kmi.properties.enumerate = False
|
2012-10-10 08:07:28 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.select', 'SELECTMOUSE', 'RELEASE', ctrl=True, alt=True)
|
2012-04-12 13:33:19 +00:00
|
|
|
kmi.properties.extend = False
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.center = True
|
2012-04-12 13:33:19 +00:00
|
|
|
kmi.properties.object = False
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.enumerate = True
|
2012-10-10 08:07:28 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.select', 'SELECTMOUSE', 'RELEASE', shift=True, alt=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.extend = True
|
2012-04-12 13:33:19 +00:00
|
|
|
kmi.properties.center = False
|
|
|
|
kmi.properties.object = False
|
|
|
|
kmi.properties.enumerate = True
|
2012-10-10 08:07:28 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.select', 'SELECTMOUSE', 'RELEASE', shift=True, ctrl=True, alt=True)
|
2012-04-12 13:33:19 +00:00
|
|
|
kmi.properties.extend = True
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.center = True
|
2012-04-12 13:33:19 +00:00
|
|
|
kmi.properties.object = False
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.enumerate = True
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.select_border', 'EVT_TWEAK_S', 'ANY')
|
2010-04-19 00:29:50 +00:00
|
|
|
kmi.properties.extend = False
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.select_lasso', 'EVT_TWEAK_A', 'ANY', ctrl=True)
|
|
|
|
kmi = km.keymap_items.new('view3d.select_lasso', 'EVT_TWEAK_A', 'ANY', shift=True, ctrl=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.deselect = True
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.select_circle', 'C', 'PRESS')
|
|
|
|
kmi = km.keymap_items.new('view3d.clip_border', 'B', 'PRESS', alt=True)
|
|
|
|
kmi = km.keymap_items.new('view3d.zoom_border', 'B', 'PRESS', shift=True)
|
|
|
|
kmi = km.keymap_items.new('view3d.render_border', 'B', 'PRESS', shift=True)
|
|
|
|
kmi = km.keymap_items.new('view3d.camera_to_view', 'NUMPAD_0', 'PRESS', ctrl=True, alt=True)
|
|
|
|
kmi = km.keymap_items.new('view3d.object_as_camera', 'NUMPAD_0', 'PRESS', ctrl=True)
|
2012-04-03 13:35:00 +00:00
|
|
|
kmi = km.keymap_items.new('wm.call_menu', 'S', 'PRESS', shift=True, ctrl=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.name = 'VIEW3D_MT_snap'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('wm.context_set_enum', 'COMMA', 'PRESS')
|
2010-06-14 08:47:58 +00:00
|
|
|
kmi.properties.data_path = 'space_data.pivot_point'
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.value = 'BOUNDING_BOX_CENTER'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('wm.context_set_enum', 'COMMA', 'PRESS', ctrl=True)
|
2010-06-14 08:47:58 +00:00
|
|
|
kmi.properties.data_path = 'space_data.pivot_point'
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.value = 'MEDIAN_POINT'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('wm.context_toggle', 'COMMA', 'PRESS', alt=True)
|
2010-12-17 15:37:59 +00:00
|
|
|
kmi.properties.data_path = 'space_data.use_pivot_point'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('wm.context_toggle', 'Q', 'PRESS')
|
2010-08-17 13:14:41 +00:00
|
|
|
kmi.properties.data_path = 'space_data.show_manipulator'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('wm.context_set_enum', 'PERIOD', 'PRESS')
|
2010-06-14 08:47:58 +00:00
|
|
|
kmi.properties.data_path = 'space_data.pivot_point'
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.value = 'CURSOR'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('wm.context_set_enum', 'PERIOD', 'PRESS', ctrl=True)
|
2010-06-14 08:47:58 +00:00
|
|
|
kmi.properties.data_path = 'space_data.pivot_point'
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.value = 'INDIVIDUAL_ORIGINS'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('wm.context_set_enum', 'PERIOD', 'PRESS', alt=True)
|
2010-06-14 08:47:58 +00:00
|
|
|
kmi.properties.data_path = 'space_data.pivot_point'
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.value = 'ACTIVE_ELEMENT'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('transform.translate', 'G', 'PRESS', shift=True)
|
|
|
|
kmi = km.keymap_items.new('transform.translate', 'EVT_TWEAK_S', 'ANY')
|
|
|
|
kmi = km.keymap_items.new('transform.rotate', 'R', 'PRESS', shift=True)
|
|
|
|
kmi = km.keymap_items.new('transform.resize', 'S', 'PRESS', shift=True)
|
|
|
|
kmi = km.keymap_items.new('transform.warp', 'W', 'PRESS', shift=True)
|
|
|
|
kmi = km.keymap_items.new('transform.tosphere', 'S', 'PRESS', shift=True, alt=True)
|
|
|
|
kmi = km.keymap_items.new('transform.shear', 'S', 'PRESS', shift=True, ctrl=True, alt=True)
|
|
|
|
kmi = km.keymap_items.new('transform.select_orientation', 'SPACE', 'PRESS', alt=True)
|
|
|
|
kmi = km.keymap_items.new('transform.create_orientation', 'SPACE', 'PRESS', ctrl=True, alt=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.use = True
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('transform.mirror', 'M', 'PRESS', ctrl=True)
|
|
|
|
kmi = km.keymap_items.new('wm.context_toggle', 'TAB', 'PRESS', shift=True)
|
2010-08-30 14:33:46 +00:00
|
|
|
kmi.properties.data_path = 'tool_settings.use_snap'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('transform.snap_type', 'TAB', 'PRESS', shift=True, ctrl=True)
|
|
|
|
kmi = km.keymap_items.new('view3d.enable_manipulator', 'W', 'PRESS')
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.translate = True
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.enable_manipulator', 'E', 'PRESS')
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.rotate = True
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.enable_manipulator', 'R', 'PRESS')
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.scale = True
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.select_border', 'EVT_TWEAK_S', 'ANY', shift=True)
|
2010-04-19 06:20:16 +00:00
|
|
|
kmi.properties.extend = True
|
2010-04-14 06:45:22 +00:00
|
|
|
|
2010-04-19 00:29:50 +00:00
|
|
|
# Map Object Mode
|
2010-08-30 13:50:59 +00:00
|
|
|
km = kc.keymaps.new('Object Mode', space_type='EMPTY', region_type='WINDOW', modal=False)
|
2010-04-19 00:29:50 +00:00
|
|
|
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('wm.context_cycle_enum', 'O', 'PRESS', shift=True)
|
2010-08-18 03:24:52 +00:00
|
|
|
kmi.properties.data_path = 'tool_settings.proportional_edit_falloff'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('wm.context_toggle_enum', 'O', 'PRESS')
|
2010-08-18 03:24:52 +00:00
|
|
|
kmi.properties.data_path = 'tool_settings.proportional_edit'
|
2010-04-19 00:29:50 +00:00
|
|
|
kmi.properties.value_1 = 'DISABLED'
|
|
|
|
kmi.properties.value_2 = 'ENABLED'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.game_start', 'P', 'PRESS')
|
|
|
|
kmi = km.keymap_items.new('object.select_all', 'A', 'PRESS')
|
2012-01-26 07:18:26 +00:00
|
|
|
kmi = km.keymap_items.new('object.select_all', 'I', 'PRESS', ctrl=True)
|
|
|
|
kmi.properties.action = 'INVERT'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('object.select_linked', 'L', 'PRESS', shift=True)
|
|
|
|
kmi = km.keymap_items.new('object.select_grouped', 'G', 'PRESS', shift=True)
|
|
|
|
kmi = km.keymap_items.new('object.select_mirror', 'M', 'PRESS', shift=True, ctrl=True)
|
|
|
|
kmi = km.keymap_items.new('object.select_hierarchy', 'LEFT_BRACKET', 'PRESS')
|
2010-04-19 00:29:50 +00:00
|
|
|
kmi.properties.direction = 'PARENT'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('object.select_hierarchy', 'LEFT_BRACKET', 'PRESS', shift=True)
|
2010-04-19 00:29:50 +00:00
|
|
|
kmi.properties.direction = 'PARENT'
|
|
|
|
kmi.properties.extend = True
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('object.select_hierarchy', 'RIGHT_BRACKET', 'PRESS')
|
2010-04-19 00:29:50 +00:00
|
|
|
kmi.properties.direction = 'CHILD'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('object.select_hierarchy', 'RIGHT_BRACKET', 'PRESS', shift=True)
|
2010-04-19 00:29:50 +00:00
|
|
|
kmi.properties.direction = 'CHILD'
|
|
|
|
kmi.properties.extend = True
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('object.parent_set', 'P', 'PRESS', ctrl=True)
|
|
|
|
kmi = km.keymap_items.new('object.parent_no_inverse_set', 'P', 'PRESS', shift=True, ctrl=True)
|
|
|
|
kmi = km.keymap_items.new('object.parent_clear', 'P', 'PRESS', alt=True)
|
|
|
|
kmi = km.keymap_items.new('object.track_set', 'T', 'PRESS', ctrl=True)
|
|
|
|
kmi = km.keymap_items.new('object.track_clear', 'T', 'PRESS', alt=True)
|
|
|
|
kmi = km.keymap_items.new('object.constraint_add_with_targets', 'C', 'PRESS', shift=True, ctrl=True)
|
|
|
|
kmi = km.keymap_items.new('object.constraints_clear', 'C', 'PRESS', ctrl=True, alt=True)
|
|
|
|
kmi = km.keymap_items.new('object.location_clear', 'G', 'PRESS', alt=True)
|
|
|
|
kmi = km.keymap_items.new('object.rotation_clear', 'R', 'PRESS', alt=True)
|
|
|
|
kmi = km.keymap_items.new('object.scale_clear', 'S', 'PRESS', alt=True)
|
|
|
|
kmi = km.keymap_items.new('object.origin_clear', 'O', 'PRESS', alt=True)
|
|
|
|
kmi = km.keymap_items.new('object.hide_view_clear', 'H', 'PRESS', alt=True)
|
|
|
|
kmi = km.keymap_items.new('object.hide_view_set', 'H', 'PRESS')
|
|
|
|
kmi = km.keymap_items.new('object.hide_view_set', 'H', 'PRESS', shift=True)
|
2010-04-19 00:29:50 +00:00
|
|
|
kmi.properties.unselected = True
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('object.move_to_layer', 'M', 'PRESS')
|
|
|
|
kmi = km.keymap_items.new('object.delete', 'X', 'PRESS')
|
|
|
|
kmi = km.keymap_items.new('object.delete', 'DEL', 'PRESS')
|
|
|
|
kmi = km.keymap_items.new('wm.call_menu', 'A', 'PRESS', shift=True)
|
2010-04-19 00:29:50 +00:00
|
|
|
kmi.properties.name = 'INFO_MT_add'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('object.duplicates_make_real', 'A', 'PRESS', shift=True, ctrl=True)
|
|
|
|
kmi = km.keymap_items.new('wm.call_menu', 'A', 'PRESS', ctrl=True)
|
2010-04-19 00:29:50 +00:00
|
|
|
kmi.properties.name = 'VIEW3D_MT_object_apply'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('wm.call_menu', 'U', 'PRESS')
|
2010-04-19 00:29:50 +00:00
|
|
|
kmi.properties.name = 'VIEW3D_MT_make_single_user'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('wm.call_menu', 'L', 'PRESS', ctrl=True)
|
2010-04-19 00:29:50 +00:00
|
|
|
kmi.properties.name = 'VIEW3D_MT_make_links'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('object.duplicate_move', 'D', 'PRESS', shift=True)
|
|
|
|
kmi = km.keymap_items.new('object.duplicate_move_linked', 'D', 'PRESS', alt=True)
|
|
|
|
kmi = km.keymap_items.new('object.join', 'J', 'PRESS', ctrl=True)
|
|
|
|
kmi = km.keymap_items.new('object.convert', 'C', 'PRESS', alt=True)
|
|
|
|
kmi = km.keymap_items.new('object.proxy_make', 'P', 'PRESS', ctrl=True, alt=True)
|
|
|
|
kmi = km.keymap_items.new('object.make_local', 'L', 'PRESS')
|
|
|
|
kmi = km.keymap_items.new('anim.keyframe_insert_menu', 'I', 'PRESS')
|
|
|
|
kmi = km.keymap_items.new('anim.keyframe_delete_v3d', 'I', 'PRESS', alt=True)
|
|
|
|
kmi = km.keymap_items.new('anim.keying_set_active_set', 'I', 'PRESS', shift=True, ctrl=True, alt=True)
|
|
|
|
kmi = km.keymap_items.new('group.create', 'G', 'PRESS', ctrl=True)
|
|
|
|
kmi = km.keymap_items.new('group.objects_remove', 'G', 'PRESS', ctrl=True, alt=True)
|
|
|
|
kmi = km.keymap_items.new('group.objects_add_active', 'G', 'PRESS', shift=True, ctrl=True)
|
|
|
|
kmi = km.keymap_items.new('group.objects_remove_active', 'G', 'PRESS', shift=True, alt=True)
|
|
|
|
kmi = km.keymap_items.new('wm.call_menu', 'W', 'PRESS', ctrl=True)
|
2010-04-19 00:29:50 +00:00
|
|
|
kmi.properties.name = 'VIEW3D_MT_object_specials'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('object.subdivision_set', 'ZERO', 'PRESS', ctrl=True)
|
2010-04-19 00:29:50 +00:00
|
|
|
kmi.properties.level = 0
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('object.subdivision_set', 'ONE', 'PRESS', ctrl=True)
|
2010-04-19 00:29:50 +00:00
|
|
|
kmi.properties.level = 1
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('object.subdivision_set', 'TWO', 'PRESS', ctrl=True)
|
2010-04-19 00:29:50 +00:00
|
|
|
kmi.properties.level = 2
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('object.subdivision_set', 'THREE', 'PRESS', ctrl=True)
|
2010-04-19 00:29:50 +00:00
|
|
|
kmi.properties.level = 3
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('object.subdivision_set', 'FOUR', 'PRESS', ctrl=True)
|
2010-04-19 00:29:50 +00:00
|
|
|
kmi.properties.level = 4
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('object.subdivision_set', 'FIVE', 'PRESS', ctrl=True)
|
2010-04-19 00:29:50 +00:00
|
|
|
kmi.properties.level = 5
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('object.select_all', 'SELECTMOUSE', 'CLICK')
|
2010-04-19 06:20:16 +00:00
|
|
|
kmi.properties.action = 'DESELECT'
|
2010-04-19 00:29:50 +00:00
|
|
|
|
2010-04-14 06:45:22 +00:00
|
|
|
# Map Mesh
|
2010-08-30 13:50:59 +00:00
|
|
|
km = kc.keymaps.new('Mesh', space_type='EMPTY', region_type='WINDOW', modal=False)
|
2010-04-14 06:45:22 +00:00
|
|
|
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('mesh.loopcut_slide', 'R', 'PRESS', ctrl=True)
|
|
|
|
kmi = km.keymap_items.new('mesh.loop_select', 'SELECTMOUSE', 'PRESS', ctrl=True, alt=True)
|
|
|
|
kmi = km.keymap_items.new('mesh.loop_select', 'SELECTMOUSE', 'PRESS', shift=True, alt=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.extend = True
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('mesh.edgering_select', 'SELECTMOUSE', 'PRESS', ctrl=True, alt=True)
|
|
|
|
kmi = km.keymap_items.new('mesh.edgering_select', 'SELECTMOUSE', 'PRESS', shift=True, ctrl=True, alt=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.extend = True
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('mesh.select_shortest_path', 'SELECTMOUSE', 'PRESS', ctrl=True)
|
|
|
|
kmi = km.keymap_items.new('mesh.select_all', 'A', 'PRESS')
|
|
|
|
kmi = km.keymap_items.new('mesh.select_more', 'NUMPAD_PLUS', 'PRESS', ctrl=True)
|
|
|
|
kmi = km.keymap_items.new('mesh.select_less', 'NUMPAD_MINUS', 'PRESS', ctrl=True)
|
2012-01-14 06:58:03 +00:00
|
|
|
kmi = km.keymap_items.new('mesh.select_all', 'I', 'PRESS', ctrl=True)
|
|
|
|
kmi.properties.action = 'INVERT'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('mesh.select_non_manifold', 'M', 'PRESS', shift=True, ctrl=True, alt=True)
|
|
|
|
kmi = km.keymap_items.new('mesh.select_linked', 'L', 'PRESS', ctrl=True)
|
|
|
|
kmi = km.keymap_items.new('mesh.select_linked_pick', 'L', 'PRESS')
|
|
|
|
kmi = km.keymap_items.new('mesh.select_linked_pick', 'L', 'PRESS', shift=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.deselect = True
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('mesh.faces_select_linked_flat', 'F', 'PRESS', shift=True, ctrl=True, alt=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.sharpness = 135.0
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('mesh.select_similar', 'G', 'PRESS', shift=True)
|
|
|
|
kmi = km.keymap_items.new('wm.call_menu', 'TAB', 'PRESS', ctrl=True)
|
2010-12-13 04:33:58 +00:00
|
|
|
kmi.properties.name = 'VIEW3D_MT_edit_mesh_select_mode'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('mesh.hide', 'H', 'PRESS')
|
|
|
|
kmi = km.keymap_items.new('mesh.hide', 'H', 'PRESS', shift=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.unselected = True
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('mesh.reveal', 'H', 'PRESS', alt=True)
|
|
|
|
kmi = km.keymap_items.new('mesh.normals_make_consistent', 'N', 'PRESS', ctrl=True)
|
|
|
|
kmi = km.keymap_items.new('mesh.normals_make_consistent', 'N', 'PRESS', shift=True, ctrl=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.inside = True
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('view3d.edit_mesh_extrude_move_normal', 'E', 'PRESS', ctrl=True)
|
|
|
|
kmi = km.keymap_items.new('view3d.edit_mesh_extrude_individual_move', 'E', 'PRESS', shift=True)
|
|
|
|
kmi = km.keymap_items.new('wm.call_menu', 'E', 'PRESS', alt=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.name = 'VIEW3D_MT_edit_mesh_extrude'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('mesh.spin', 'R', 'PRESS', alt=True)
|
|
|
|
kmi = km.keymap_items.new('mesh.fill', 'F', 'PRESS', alt=True)
|
|
|
|
kmi = km.keymap_items.new('mesh.beautify_fill', 'F', 'PRESS', shift=True, alt=True)
|
|
|
|
kmi = km.keymap_items.new('mesh.quads_convert_to_tris', 'T', 'PRESS', ctrl=True)
|
|
|
|
kmi = km.keymap_items.new('mesh.tris_convert_to_quads', 'J', 'PRESS', alt=True)
|
2012-02-27 13:47:53 +00:00
|
|
|
# kmi = km.keymap_items.new('mesh.edge_flip', 'F', 'PRESS', shift=True, ctrl=True) # removed since bmesh, can be made into something else?
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('mesh.rip_move', 'V', 'PRESS')
|
|
|
|
kmi = km.keymap_items.new('mesh.merge', 'M', 'PRESS', alt=True)
|
|
|
|
kmi = km.keymap_items.new('transform.shrink_fatten', 'S', 'PRESS', ctrl=True, alt=True)
|
|
|
|
kmi = km.keymap_items.new('mesh.edge_face_add', 'F', 'PRESS')
|
|
|
|
kmi = km.keymap_items.new('mesh.duplicate_move', 'D', 'PRESS', shift=True)
|
|
|
|
kmi = km.keymap_items.new('wm.call_menu', 'A', 'PRESS', shift=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.name = 'INFO_MT_mesh_add'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('mesh.separate', 'P', 'PRESS')
|
|
|
|
kmi = km.keymap_items.new('mesh.split', 'Y', 'PRESS')
|
|
|
|
kmi = km.keymap_items.new('mesh.dupli_extrude_cursor', 'ACTIONMOUSE', 'CLICK', ctrl=True)
|
|
|
|
kmi = km.keymap_items.new('mesh.delete', 'X', 'PRESS')
|
|
|
|
kmi = km.keymap_items.new('mesh.delete', 'DEL', 'PRESS')
|
2012-02-22 08:16:12 +00:00
|
|
|
kmi = km.keymap_items.new('mesh.knifetool', 'LEFTMOUSE', 'PRESS', key_modifier='K')
|
|
|
|
# BMESH_TODO: midpoints for knife were moved to modal keymap
|
|
|
|
#kmi = km.keymap_items.new('mesh.knifetool', 'LEFTMOUSE', 'PRESS', shift=True, key_modifier='K')
|
|
|
|
#kmi.properties.type = 'MIDPOINTS'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('object.vertex_parent_set', 'P', 'PRESS', ctrl=True)
|
|
|
|
kmi = km.keymap_items.new('wm.call_menu', 'W', 'PRESS', ctrl=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.name = 'VIEW3D_MT_edit_mesh_specials'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('wm.call_menu', 'F', 'PRESS', ctrl=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.name = 'VIEW3D_MT_edit_mesh_faces'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('wm.call_menu', 'E', 'PRESS', ctrl=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.name = 'VIEW3D_MT_edit_mesh_edges'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('wm.call_menu', 'V', 'PRESS', ctrl=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.name = 'VIEW3D_MT_edit_mesh_vertices'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('wm.call_menu', 'H', 'PRESS', ctrl=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.name = 'VIEW3D_MT_hook'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('wm.call_menu', 'U', 'PRESS')
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.name = 'VIEW3D_MT_uv_map'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('wm.call_menu', 'G', 'PRESS', ctrl=True)
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.name = 'VIEW3D_MT_vertex_group'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('wm.context_cycle_enum', 'O', 'PRESS', shift=True)
|
2010-08-18 03:24:52 +00:00
|
|
|
kmi.properties.data_path = 'tool_settings.proportional_edit_falloff'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('wm.context_toggle_enum', 'O', 'PRESS')
|
2010-08-18 03:24:52 +00:00
|
|
|
kmi.properties.data_path = 'tool_settings.proportional_edit'
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.value_1 = 'DISABLED'
|
|
|
|
kmi.properties.value_2 = 'ENABLED'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('wm.context_toggle_enum', 'O', 'PRESS', alt=True)
|
2010-08-18 03:24:52 +00:00
|
|
|
kmi.properties.data_path = 'tool_settings.proportional_edit'
|
2010-04-14 06:45:22 +00:00
|
|
|
kmi.properties.value_1 = 'DISABLED'
|
|
|
|
kmi.properties.value_2 = 'CONNECTED'
|
2011-03-25 02:12:44 +00:00
|
|
|
kmi = km.keymap_items.new('mesh.select_all', 'SELECTMOUSE', 'CLICK')
|
2010-04-19 00:29:50 +00:00
|
|
|
kmi.properties.action = 'DESELECT'
|
2012-02-22 08:25:14 +00:00
|
|
|
kmi = km.keymap_items.new('object.subdivision_set', 'ZERO', 'PRESS', ctrl=True)
|
|
|
|
kmi.properties.level = 0
|
|
|
|
kmi = km.keymap_items.new('object.subdivision_set', 'ONE', 'PRESS', ctrl=True)
|
|
|
|
kmi.properties.level = 1
|
|
|
|
kmi = km.keymap_items.new('object.subdivision_set', 'TWO', 'PRESS', ctrl=True)
|
|
|
|
kmi.properties.level = 2
|
|
|
|
kmi = km.keymap_items.new('object.subdivision_set', 'THREE', 'PRESS', ctrl=True)
|
|
|
|
kmi.properties.level = 3
|
|
|
|
kmi = km.keymap_items.new('object.subdivision_set', 'FOUR', 'PRESS', ctrl=True)
|
|
|
|
kmi.properties.level = 4
|
|
|
|
kmi = km.keymap_items.new('object.subdivision_set', 'FIVE', 'PRESS', ctrl=True)
|
|
|
|
kmi.properties.level = 5
|
2010-04-14 06:45:22 +00:00
|
|
|
|
2010-08-23 22:16:45 +00:00
|
|
|
wm.keyconfigs.active = kc
|