⠀
This commit is contained in:
parent
4b6db6fe4c
commit
752b4209e8
@ -0,0 +1,13 @@
|
||||
import bpy
|
||||
user_preferences = bpy.context.user_preferences
|
||||
|
||||
user_preferences.edit.use_drag_immediately = False
|
||||
user_preferences.edit.use_insertkey_xyz_to_rgb = True
|
||||
user_preferences.inputs.invert_mouse_zoom = False
|
||||
user_preferences.inputs.select_mouse = 'LEFT'
|
||||
user_preferences.inputs.use_emulate_numpad = False
|
||||
user_preferences.inputs.use_mouse_continuous = False
|
||||
user_preferences.inputs.use_mouse_emulate_3_button = False
|
||||
user_preferences.inputs.view_rotate_method = 'TURNTABLE'
|
||||
user_preferences.inputs.view_zoom_axis = 'VERTICAL'
|
||||
user_preferences.inputs.view_zoom_method = 'DOLLY'
|
@ -12,10 +12,10 @@
|
||||
<wcol_regular>
|
||||
<ThemeWidgetColors outline="#aaaaaa"
|
||||
inner="#ffffffff"
|
||||
inner_sel="#f8f8f8ff"
|
||||
item="#929292ff"
|
||||
text="#606060"
|
||||
text_sel="#606060"
|
||||
inner_sel="#f0f0f0ff"
|
||||
item="#f8f8f8ff"
|
||||
text="#676767"
|
||||
text_sel="#000000"
|
||||
show_shaded="FALSE"
|
||||
shadetop="0"
|
||||
shadedown="0">
|
||||
@ -24,9 +24,9 @@
|
||||
<wcol_tool>
|
||||
<ThemeWidgetColors outline="#aaaaaa"
|
||||
inner="#ffffffff"
|
||||
inner_sel="#f8f8f8ff"
|
||||
item="#cfcfcfff"
|
||||
text="#606060"
|
||||
inner_sel="#f0f0f0ff"
|
||||
item="#f8f8f8ff"
|
||||
text="#676767"
|
||||
text_sel="#606060"
|
||||
show_shaded="FALSE"
|
||||
shadetop="0"
|
||||
@ -36,9 +36,9 @@
|
||||
<wcol_radio>
|
||||
<ThemeWidgetColors outline="#aaaaaa"
|
||||
inner="#ffffffff"
|
||||
inner_sel="#f8f8f8ff"
|
||||
item="#cfcfcfff"
|
||||
text="#606060"
|
||||
inner_sel="#f0f0f0ff"
|
||||
item="#f8f8f8ff"
|
||||
text="#676767"
|
||||
text_sel="#606060"
|
||||
show_shaded="FALSE"
|
||||
shadetop="0"
|
||||
@ -48,9 +48,9 @@
|
||||
<wcol_text>
|
||||
<ThemeWidgetColors outline="#aaaaaa"
|
||||
inner="#ffffffff"
|
||||
inner_sel="#f8f8f8ff"
|
||||
item="#cfcfcfff"
|
||||
text="#606060"
|
||||
inner_sel="#f0f0f0ff"
|
||||
item="#f8f8f8ff"
|
||||
text="#676767"
|
||||
text_sel="#606060"
|
||||
show_shaded="FALSE"
|
||||
shadetop="0"
|
||||
@ -62,7 +62,7 @@
|
||||
inner="#ffffffff"
|
||||
inner_sel="#ffffffff"
|
||||
item="#606060ff"
|
||||
text="#606060"
|
||||
text="#676767"
|
||||
text_sel="#606060"
|
||||
show_shaded="TRUE"
|
||||
shadetop="0"
|
||||
@ -72,9 +72,9 @@
|
||||
<wcol_toggle>
|
||||
<ThemeWidgetColors outline="#aaaaaa"
|
||||
inner="#ffffffff"
|
||||
inner_sel="#f8f8f8ff"
|
||||
item="#cfcfcfff"
|
||||
text="#606060"
|
||||
inner_sel="#f0f0f0ff"
|
||||
item="#f8f8f8ff"
|
||||
text="#676767"
|
||||
text_sel="#606060"
|
||||
show_shaded="FALSE"
|
||||
shadetop="0"
|
||||
@ -84,10 +84,10 @@
|
||||
<wcol_num>
|
||||
<ThemeWidgetColors outline="#aaaaaa"
|
||||
inner="#ffffffff"
|
||||
inner_sel="#f8f8f8ff"
|
||||
item="#cfcfcfff"
|
||||
text="#5d5d5d"
|
||||
text_sel="#606060"
|
||||
inner_sel="#f0f0f0ff"
|
||||
item="#e2e2e2ff"
|
||||
text="#676767"
|
||||
text_sel="#676767"
|
||||
show_shaded="FALSE"
|
||||
shadetop="0"
|
||||
shadedown="0">
|
||||
@ -96,8 +96,8 @@
|
||||
<wcol_numslider>
|
||||
<ThemeWidgetColors outline="#aaaaaa"
|
||||
inner="#ffffffff"
|
||||
inner_sel="#f8f8f8ff"
|
||||
item="#f0f0f0ff"
|
||||
inner_sel="#f0f0f0ff"
|
||||
item="#f8f8f8ff"
|
||||
text="#676767"
|
||||
text_sel="#585858"
|
||||
show_shaded="FALSE"
|
||||
@ -108,9 +108,9 @@
|
||||
<wcol_box>
|
||||
<ThemeWidgetColors outline="#aaaaaa"
|
||||
inner="#ffffffff"
|
||||
inner_sel="#efefefff"
|
||||
item="#f0f0f0ff"
|
||||
text="#606060"
|
||||
inner_sel="#f0f0f0ff"
|
||||
item="#f8f8f8ff"
|
||||
text="#676767"
|
||||
text_sel="#606060"
|
||||
show_shaded="FALSE"
|
||||
shadetop="0"
|
||||
@ -120,9 +120,9 @@
|
||||
<wcol_menu>
|
||||
<ThemeWidgetColors outline="#aaaaaa"
|
||||
inner="#ffffffff"
|
||||
inner_sel="#efefefff"
|
||||
item="#cfcfcfff"
|
||||
text="#606060"
|
||||
inner_sel="#f0f0f0ff"
|
||||
item="#676767ff"
|
||||
text="#676767"
|
||||
text_sel="#606060"
|
||||
show_shaded="FALSE"
|
||||
shadetop="0"
|
||||
@ -132,9 +132,9 @@
|
||||
<wcol_pulldown>
|
||||
<ThemeWidgetColors outline="#aaaaaa"
|
||||
inner="#ffffffff"
|
||||
inner_sel="#efefefff"
|
||||
item="#cfcfcfff"
|
||||
text="#606060"
|
||||
inner_sel="#f0f0f0ff"
|
||||
item="#f8f8f8ff"
|
||||
text="#676767"
|
||||
text_sel="#606060"
|
||||
show_shaded="FALSE"
|
||||
shadetop="0"
|
||||
@ -144,9 +144,9 @@
|
||||
<wcol_menu_back>
|
||||
<ThemeWidgetColors outline="#aaaaaa"
|
||||
inner="#ffffffff"
|
||||
inner_sel="#efefefff"
|
||||
item="#cfcfcfff"
|
||||
text="#606060"
|
||||
inner_sel="#f0f0f0ff"
|
||||
item="#f8f8f8ff"
|
||||
text="#676767"
|
||||
text_sel="#606060"
|
||||
show_shaded="FALSE"
|
||||
shadetop="0"
|
||||
@ -156,9 +156,9 @@
|
||||
<wcol_pie_menu>
|
||||
<ThemeWidgetColors outline="#aaaaaa"
|
||||
inner="#ffffffff"
|
||||
inner_sel="#efefefff"
|
||||
item="#cfcfcfff"
|
||||
text="#606060"
|
||||
inner_sel="#f0f0f0ff"
|
||||
item="#f8f8f8ff"
|
||||
text="#676767"
|
||||
text_sel="#606060"
|
||||
show_shaded="FALSE"
|
||||
shadetop="0"
|
||||
@ -168,9 +168,9 @@
|
||||
<wcol_tooltip>
|
||||
<ThemeWidgetColors outline="#aaaaaa"
|
||||
inner="#ffffffff"
|
||||
inner_sel="#efefefff"
|
||||
item="#cfcfcfff"
|
||||
text="#606060"
|
||||
inner_sel="#f0f0f0ff"
|
||||
item="#f8f8f8ff"
|
||||
text="#676767"
|
||||
text_sel="#606060"
|
||||
show_shaded="FALSE"
|
||||
shadetop="0"
|
||||
@ -180,9 +180,9 @@
|
||||
<wcol_menu_item>
|
||||
<ThemeWidgetColors outline="#aaaaaa"
|
||||
inner="#ffffffff"
|
||||
inner_sel="#efefefff"
|
||||
inner_sel="#f0f0f0ff"
|
||||
item="#cfcfcfff"
|
||||
text="#606060"
|
||||
text="#676767"
|
||||
text_sel="#606060"
|
||||
show_shaded="FALSE"
|
||||
shadetop="0"
|
||||
@ -192,9 +192,9 @@
|
||||
<wcol_scroll>
|
||||
<ThemeWidgetColors outline="#aaaaaa"
|
||||
inner="#ffffffff"
|
||||
inner_sel="#efefefff"
|
||||
inner_sel="#f0f0f0ff"
|
||||
item="#ffffffff"
|
||||
text="#606060"
|
||||
text="#676767"
|
||||
text_sel="#606060"
|
||||
show_shaded="FALSE"
|
||||
shadetop="0"
|
||||
@ -204,9 +204,9 @@
|
||||
<wcol_progress>
|
||||
<ThemeWidgetColors outline="#aaaaaa"
|
||||
inner="#ffffffff"
|
||||
inner_sel="#efefefff"
|
||||
item="#cfcfcfff"
|
||||
text="#606060"
|
||||
inner_sel="#f0f0f0ff"
|
||||
item="#f8f8f8ff"
|
||||
text="#676767"
|
||||
text_sel="#606060"
|
||||
show_shaded="FALSE"
|
||||
shadetop="0"
|
||||
@ -216,9 +216,9 @@
|
||||
<wcol_list_item>
|
||||
<ThemeWidgetColors outline="#aaaaaa"
|
||||
inner="#ffffffff"
|
||||
inner_sel="#efefefff"
|
||||
item="#f0f0f0ff"
|
||||
text="#606060"
|
||||
inner_sel="#f0f0f0ff"
|
||||
item="#f8f8f8ff"
|
||||
text="#676767"
|
||||
text_sel="#606060"
|
||||
show_shaded="FALSE"
|
||||
shadetop="0"
|
||||
@ -226,10 +226,10 @@
|
||||
</ThemeWidgetColors>
|
||||
</wcol_list_item>
|
||||
<wcol_state>
|
||||
<ThemeWidgetStateColors inner_anim="#f0f0f0"
|
||||
inner_anim_sel="#f8f8f8"
|
||||
inner_key="#f0f0f0"
|
||||
inner_key_sel="#f8f8f8"
|
||||
<ThemeWidgetStateColors inner_anim="#f8f8f8"
|
||||
inner_anim_sel="#f0f0f0"
|
||||
inner_key="#f8f8f8"
|
||||
inner_key_sel="#f0f0f0"
|
||||
inner_driven="#f0f0f0"
|
||||
inner_driven_sel="#f8f8f8"
|
||||
blend="0.5">
|
||||
@ -238,28 +238,28 @@
|
||||
</ThemeUserInterface>
|
||||
</user_interface>
|
||||
<view_3d>
|
||||
<ThemeView3D grid="#dfdfdf"
|
||||
clipping_border_3d="#606060ff"
|
||||
wire="#808080"
|
||||
wire_edit="#606060"
|
||||
<ThemeView3D grid="#676767"
|
||||
clipping_border_3d="#676767ff"
|
||||
wire="#f0f0f0"
|
||||
wire_edit="#676767"
|
||||
gp_vertex="#606060"
|
||||
gp_vertex_select="#efefef"
|
||||
gp_vertex_size="4"
|
||||
text_grease_pencil="#606060"
|
||||
object_selected="#efefef"
|
||||
object_active="#efefef"
|
||||
object_grouped="#083008"
|
||||
object_grouped="#676767"
|
||||
object_grouped_active="#7cbb7c"
|
||||
text_keyframe="#606060"
|
||||
text_keyframe="#676767"
|
||||
camera="#606060"
|
||||
empty="#606060"
|
||||
lamp="#00000028"
|
||||
speaker="#606060"
|
||||
vertex="#606060"
|
||||
vertex="#676767"
|
||||
vertex_select="#efefef"
|
||||
vertex_size="4"
|
||||
vertex_bevel="#606060"
|
||||
vertex_unreferenced="#606060"
|
||||
vertex_bevel="#676767"
|
||||
vertex_unreferenced="#676767"
|
||||
edge_select="#606060"
|
||||
edge_seam="#606060"
|
||||
edge_sharp="#606060"
|
||||
@ -267,11 +267,11 @@
|
||||
edge_bevel="#606060"
|
||||
edge_facesel="#606060"
|
||||
freestyle_edge_mark="#606060"
|
||||
face="#60606060"
|
||||
face_select="#606060ff"
|
||||
face_dot="#606060"
|
||||
facedot_size="4"
|
||||
freestyle_face_mark="#60606033"
|
||||
face="#ffffffff"
|
||||
face_select="#0000000f"
|
||||
face_dot="#cfcfcf"
|
||||
facedot_size="1"
|
||||
freestyle_face_mark="#5e5e5eff"
|
||||
nurb_uline="#606060"
|
||||
nurb_vline="#606060"
|
||||
nurb_sel_uline="#606060"
|
||||
@ -291,21 +291,21 @@
|
||||
extra_face_angle="#606060"
|
||||
extra_face_area="#606060"
|
||||
editmesh_active="#ffffff60"
|
||||
normal="#606060"
|
||||
vertex_normal="#606060"
|
||||
split_normal="#606060"
|
||||
normal="#aaaaaa"
|
||||
vertex_normal="#858585"
|
||||
split_normal="#7c7c7c"
|
||||
bone_pose="#606060"
|
||||
bone_pose_active="#606060"
|
||||
bone_solid="#606060"
|
||||
bundle_solid="#606060"
|
||||
camera_path="#606060"
|
||||
skin_root="#606060"
|
||||
bundle_solid="#a6a6a6"
|
||||
camera_path="#ababab"
|
||||
skin_root="#7a7a7a"
|
||||
view_overlay="#efefef"
|
||||
transform="#606060"
|
||||
transform="#444444"
|
||||
frame_current="#bfbfbf"
|
||||
paint_curve_handle="#6060607f"
|
||||
paint_curve_pivot="#6060607f"
|
||||
outline_width="1">
|
||||
paint_curve_handle="#7575757f"
|
||||
paint_curve_pivot="#4444447f"
|
||||
outline_width="4">
|
||||
<space>
|
||||
<ThemeSpaceGradient title="#606060"
|
||||
text="#ffffff"
|
||||
@ -1144,7 +1144,7 @@
|
||||
</Theme>
|
||||
<ThemeStyle>
|
||||
<panel_title>
|
||||
<ThemeFontStyle points="11"
|
||||
<ThemeFontStyle points="13"
|
||||
font_kerning_style="FITTED"
|
||||
shadow="0"
|
||||
shadow_offset_x="0"
|
||||
@ -1154,7 +1154,7 @@
|
||||
</ThemeFontStyle>
|
||||
</panel_title>
|
||||
<widget_label>
|
||||
<ThemeFontStyle points="11"
|
||||
<ThemeFontStyle points="13"
|
||||
font_kerning_style="FITTED"
|
||||
shadow="0"
|
||||
shadow_offset_x="0"
|
||||
@ -1164,9 +1164,9 @@
|
||||
</ThemeFontStyle>
|
||||
</widget_label>
|
||||
<widget>
|
||||
<ThemeFontStyle points="11"
|
||||
<ThemeFontStyle points="13"
|
||||
font_kerning_style="FITTED"
|
||||
shadow="5"
|
||||
shadow="0"
|
||||
shadow_offset_x="0"
|
||||
shadow_offset_y="0"
|
||||
shadow_alpha="0"
|
||||
|
@ -0,0 +1,585 @@
|
||||
import bpy
|
||||
import os
|
||||
|
||||
def kmi_props_setattr(kmi_props, attr, value):
|
||||
try:
|
||||
setattr(kmi_props, attr, value)
|
||||
except AttributeError:
|
||||
print("Warning: property '%s' not found in keymap item '%s'" %
|
||||
(attr, kmi_props.__class__.__name__))
|
||||
except Exception as e:
|
||||
print("Warning: %r" % e)
|
||||
|
||||
wm = bpy.context.window_manager
|
||||
kc = wm.keyconfigs.new(os.path.splitext(os.path.basename(__file__))[0])
|
||||
|
||||
# Map View2D
|
||||
km = kc.keymaps.new('View2D', space_type='EMPTY', region_type='WINDOW', modal=False)
|
||||
|
||||
kmi = km.keymap_items.new('view2d.scroller_activate', 'LEFTMOUSE', 'PRESS')
|
||||
kmi = km.keymap_items.new('view2d.scroller_activate', 'MIDDLEMOUSE', 'PRESS')
|
||||
kmi = km.keymap_items.new('view2d.pan', 'MIDDLEMOUSE', 'PRESS')
|
||||
kmi = km.keymap_items.new('view2d.pan', 'MIDDLEMOUSE', 'PRESS', ctrl=True)
|
||||
kmi = km.keymap_items.new('view2d.pan', 'TRACKPADPAN', 'ANY')
|
||||
kmi = km.keymap_items.new('view2d.scroll_right', 'WHEELDOWNMOUSE', 'PRESS', ctrl=True)
|
||||
kmi = km.keymap_items.new('view2d.scroll_left', 'WHEELUPMOUSE', 'PRESS', ctrl=True)
|
||||
kmi = km.keymap_items.new('view2d.scroll_down', 'WHEELDOWNMOUSE', 'PRESS', shift=True)
|
||||
kmi = km.keymap_items.new('view2d.scroll_up', 'WHEELUPMOUSE', 'PRESS', shift=True)
|
||||
kmi = km.keymap_items.new('view2d.ndof', 'NDOF_MOTION', 'ANY')
|
||||
kmi = km.keymap_items.new('view2d.zoom_out', 'WHEELOUTMOUSE', 'PRESS')
|
||||
kmi = km.keymap_items.new('view2d.zoom_in', 'WHEELINMOUSE', 'PRESS')
|
||||
kmi = km.keymap_items.new('view2d.zoom_out', 'NUMPAD_MINUS', 'PRESS')
|
||||
kmi = km.keymap_items.new('view2d.zoom_in', 'NUMPAD_PLUS', 'PRESS')
|
||||
kmi = km.keymap_items.new('view2d.zoom', 'MIDDLEMOUSE', 'ANY', shift=True)
|
||||
kmi = km.keymap_items.new('view2d.smoothview', 'TIMER1', 'ANY', any=True)
|
||||
kmi = km.keymap_items.new('view2d.scroll_down', 'WHEELDOWNMOUSE', 'PRESS')
|
||||
kmi = km.keymap_items.new('view2d.scroll_up', 'WHEELUPMOUSE', 'PRESS')
|
||||
kmi = km.keymap_items.new('view2d.scroll_right', 'WHEELDOWNMOUSE', 'PRESS')
|
||||
kmi = km.keymap_items.new('view2d.scroll_left', 'WHEELUPMOUSE', 'PRESS')
|
||||
kmi = km.keymap_items.new('view2d.zoom_border', 'B', 'PRESS', shift=True)
|
||||
|
||||
# Map View2D Buttons List
|
||||
km = kc.keymaps.new('View2D Buttons List', space_type='EMPTY', region_type='WINDOW', modal=False)
|
||||
|
||||
kmi = km.keymap_items.new('view2d.scroller_activate', 'LEFTMOUSE', 'PRESS')
|
||||
kmi = km.keymap_items.new('view2d.scroller_activate', 'MIDDLEMOUSE', 'PRESS')
|
||||
kmi = km.keymap_items.new('view2d.pan', 'MIDDLEMOUSE', 'PRESS')
|
||||
kmi = km.keymap_items.new('view2d.pan', 'TRACKPADPAN', 'ANY')
|
||||
kmi = km.keymap_items.new('view2d.scroll_down', 'WHEELDOWNMOUSE', 'PRESS')
|
||||
kmi = km.keymap_items.new('view2d.scroll_up', 'WHEELUPMOUSE', 'PRESS')
|
||||
kmi = km.keymap_items.new('view2d.scroll_down', 'PAGE_DOWN', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'page', True)
|
||||
kmi = km.keymap_items.new('view2d.scroll_up', 'PAGE_UP', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'page', True)
|
||||
kmi = km.keymap_items.new('view2d.zoom', 'MIDDLEMOUSE', 'PRESS', shift=True)
|
||||
kmi = km.keymap_items.new('view2d.zoom', 'MIDDLEMOUSE', 'ANY', shift=True)
|
||||
kmi = km.keymap_items.new('view2d.zoom_out', 'NUMPAD_MINUS', 'PRESS')
|
||||
kmi = km.keymap_items.new('view2d.zoom_in', 'NUMPAD_PLUS', 'PRESS')
|
||||
kmi = km.keymap_items.new('view2d.reset', 'HOME', 'PRESS')
|
||||
|
||||
# Map Object Non-modal
|
||||
km = kc.keymaps.new('Object Non-modal', space_type='EMPTY', region_type='WINDOW', modal=False)
|
||||
|
||||
kmi = km.keymap_items.new('object.mode_set', 'TAB', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'mode', 'EDIT')
|
||||
kmi_props_setattr(kmi.properties, 'toggle', True)
|
||||
kmi = km.keymap_items.new('object.mode_set', 'ACCENT_GRAVE', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'mode', 'EDIT')
|
||||
kmi_props_setattr(kmi.properties, 'toggle', True)
|
||||
kmi = km.keymap_items.new('object.mode_set', 'V', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'mode', 'VERTEX_PAINT')
|
||||
kmi_props_setattr(kmi.properties, 'toggle', True)
|
||||
kmi = km.keymap_items.new('object.origin_set', 'C', 'PRESS', shift=True, ctrl=True, alt=True)
|
||||
|
||||
# Map 3D View
|
||||
km = kc.keymaps.new('3D View', space_type='VIEW_3D', region_type='WINDOW', modal=False)
|
||||
|
||||
kmi = km.keymap_items.new('wm.call_menu', 'Q', 'PRESS', shift=True)
|
||||
kmi_props_setattr(kmi.properties, 'name', 'VIEW3D_MT_master_material')
|
||||
kmi = km.keymap_items.new('view3d.manipulator', 'LEFTMOUSE', 'PRESS', shift=True)
|
||||
kmi_props_setattr(kmi.properties, 'release_confirm', True)
|
||||
kmi_props_setattr(kmi.properties, 'use_accurate', False)
|
||||
kmi_props_setattr(kmi.properties, 'use_planar_constraint', True)
|
||||
kmi = km.keymap_items.new('view3d.manipulator', 'LEFTMOUSE', 'PRESS', shift=True)
|
||||
kmi_props_setattr(kmi.properties, 'release_confirm', True)
|
||||
kmi_props_setattr(kmi.properties, 'use_accurate', True)
|
||||
kmi_props_setattr(kmi.properties, 'use_planar_constraint', False)
|
||||
kmi = km.keymap_items.new('view3d.manipulator', 'LEFTMOUSE', 'PRESS', any=True)
|
||||
kmi_props_setattr(kmi.properties, 'release_confirm', True)
|
||||
kmi_props_setattr(kmi.properties, 'use_accurate', False)
|
||||
kmi_props_setattr(kmi.properties, 'use_planar_constraint', False)
|
||||
kmi = km.keymap_items.new('view3d.cursor3d', 'ACTIONMOUSE', 'PRESS')
|
||||
kmi = km.keymap_items.new('view3d.rotate', 'MIDDLEMOUSE', 'PRESS', alt=True)
|
||||
kmi = km.keymap_items.new('view3d.move', 'MIDDLEMOUSE', 'PRESS')
|
||||
kmi = km.keymap_items.new('view3d.dolly', 'MIDDLEMOUSE', 'PRESS', shift=True, alt=True)
|
||||
kmi = km.keymap_items.new('view3d.view_selected', 'NUMPAD_PERIOD', 'PRESS', ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'use_all_regions', True)
|
||||
kmi = km.keymap_items.new('view3d.view_selected', 'NUMPAD_PERIOD', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'use_all_regions', False)
|
||||
kmi = km.keymap_items.new('view3d.view_lock_to_active', 'NUMPAD_PERIOD', 'PRESS', shift=True)
|
||||
kmi = km.keymap_items.new('view3d.view_lock_clear', 'NUMPAD_PERIOD', 'PRESS', alt=True)
|
||||
kmi = km.keymap_items.new('view3d.navigate', 'F', 'PRESS', shift=True)
|
||||
kmi = km.keymap_items.new('view3d.smoothview', 'TIMER1', 'ANY', any=True)
|
||||
kmi = km.keymap_items.new('view3d.rotate', 'MIDDLEMOUSE', 'ANY')
|
||||
kmi = km.keymap_items.new('view3d.move', 'MIDDLEMOUSE', 'ANY', ctrl=True)
|
||||
kmi = km.keymap_items.new('view3d.zoom', 'MIDDLEMOUSE', 'ANY', shift=True)
|
||||
kmi = km.keymap_items.new('view3d.zoom', 'NUMPAD_PLUS', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'delta', 1)
|
||||
kmi = km.keymap_items.new('view3d.zoom', 'NUMPAD_MINUS', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'delta', -1)
|
||||
kmi = km.keymap_items.new('view3d.zoom', 'EQUAL', 'PRESS', ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'delta', 1)
|
||||
kmi = km.keymap_items.new('view3d.zoom', 'MINUS', 'PRESS', ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'delta', -1)
|
||||
kmi = km.keymap_items.new('view3d.zoom', 'WHEELINMOUSE', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'delta', 1)
|
||||
kmi = km.keymap_items.new('view3d.zoom', 'WHEELOUTMOUSE', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'delta', -1)
|
||||
kmi = km.keymap_items.new('view3d.dolly', 'NUMPAD_PLUS', 'PRESS', shift=True)
|
||||
kmi_props_setattr(kmi.properties, 'delta', 1)
|
||||
kmi = km.keymap_items.new('view3d.dolly', 'NUMPAD_MINUS', 'PRESS', shift=True)
|
||||
kmi_props_setattr(kmi.properties, 'delta', -1)
|
||||
kmi = km.keymap_items.new('view3d.dolly', 'EQUAL', 'PRESS', shift=True, ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'delta', 1)
|
||||
kmi = km.keymap_items.new('view3d.dolly', 'MINUS', 'PRESS', shift=True, ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'delta', -1)
|
||||
kmi = km.keymap_items.new('view3d.zoom_camera_1_to_1', 'NUMPAD_ENTER', 'PRESS', shift=True)
|
||||
kmi = km.keymap_items.new('view3d.view_center_camera', 'HOME', 'PRESS')
|
||||
kmi = km.keymap_items.new('view3d.view_center_lock', 'HOME', 'PRESS')
|
||||
kmi = km.keymap_items.new('view3d.view_center_cursor', 'HOME', 'PRESS', alt=True)
|
||||
kmi = km.keymap_items.new('view3d.view_center_pick', 'F', 'PRESS', alt=True)
|
||||
kmi = km.keymap_items.new('view3d.view_all', 'HOME', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'center', False)
|
||||
kmi = km.keymap_items.new('view3d.view_all', 'HOME', 'PRESS', ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'use_all_regions', True)
|
||||
kmi_props_setattr(kmi.properties, 'center', False)
|
||||
kmi = km.keymap_items.new('view3d.view_all', 'C', 'PRESS', shift=True)
|
||||
kmi_props_setattr(kmi.properties, 'center', True)
|
||||
kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_0', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'type', 'CAMERA')
|
||||
kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_1', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'type', 'FRONT')
|
||||
kmi = km.keymap_items.new('view3d.view_orbit', 'NUMPAD_2', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'type', 'ORBITDOWN')
|
||||
kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_3', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'type', 'RIGHT')
|
||||
kmi = km.keymap_items.new('view3d.view_orbit', 'NUMPAD_4', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'type', 'ORBITLEFT')
|
||||
kmi = km.keymap_items.new('view3d.view_persportho', 'NUMPAD_5', 'PRESS')
|
||||
kmi = km.keymap_items.new('view3d.view_orbit', 'NUMPAD_6', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'type', 'ORBITRIGHT')
|
||||
kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_7', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'type', 'TOP')
|
||||
kmi = km.keymap_items.new('view3d.view_orbit', 'NUMPAD_8', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'type', 'ORBITUP')
|
||||
kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_1', 'PRESS', ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'type', 'BACK')
|
||||
kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_3', 'PRESS', ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'type', 'LEFT')
|
||||
kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_7', 'PRESS', ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'type', 'BOTTOM')
|
||||
kmi = km.keymap_items.new('view3d.view_pan', 'NUMPAD_2', 'PRESS', ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'type', 'PANDOWN')
|
||||
kmi = km.keymap_items.new('view3d.view_pan', 'NUMPAD_4', 'PRESS', ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'type', 'PANLEFT')
|
||||
kmi = km.keymap_items.new('view3d.view_pan', 'NUMPAD_6', 'PRESS', ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'type', 'PANRIGHT')
|
||||
kmi = km.keymap_items.new('view3d.view_pan', 'NUMPAD_8', 'PRESS', ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'type', 'PANUP')
|
||||
kmi = km.keymap_items.new('view3d.view_roll', 'NUMPAD_4', 'PRESS', shift=True)
|
||||
kmi_props_setattr(kmi.properties, 'type', 'LEFT')
|
||||
kmi = km.keymap_items.new('view3d.view_roll', 'NUMPAD_6', 'PRESS', shift=True)
|
||||
kmi_props_setattr(kmi.properties, 'type', 'RIGHT')
|
||||
kmi = km.keymap_items.new('view3d.view_orbit', 'NUMPAD_9', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'angle', 3.1415927410125732)
|
||||
kmi_props_setattr(kmi.properties, 'type', 'ORBITRIGHT')
|
||||
kmi = km.keymap_items.new('view3d.view_orbit', 'WHEELUPMOUSE', 'PRESS', ctrl=True, alt=True)
|
||||
kmi_props_setattr(kmi.properties, 'type', 'ORBITLEFT')
|
||||
kmi = km.keymap_items.new('view3d.view_orbit', 'WHEELDOWNMOUSE', 'PRESS', ctrl=True, alt=True)
|
||||
kmi_props_setattr(kmi.properties, 'type', 'ORBITRIGHT')
|
||||
kmi = km.keymap_items.new('view3d.view_orbit', 'WHEELUPMOUSE', 'PRESS', shift=True, alt=True)
|
||||
kmi_props_setattr(kmi.properties, 'type', 'ORBITUP')
|
||||
kmi = km.keymap_items.new('view3d.view_orbit', 'WHEELDOWNMOUSE', 'PRESS', shift=True, alt=True)
|
||||
kmi_props_setattr(kmi.properties, 'type', 'ORBITDOWN')
|
||||
kmi = km.keymap_items.new('view3d.view_roll', 'WHEELUPMOUSE', 'PRESS', shift=True, ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'type', 'LEFT')
|
||||
kmi = km.keymap_items.new('view3d.view_roll', 'WHEELDOWNMOUSE', 'PRESS', shift=True, ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'type', 'RIGHT')
|
||||
kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_1', 'PRESS', shift=True)
|
||||
kmi_props_setattr(kmi.properties, 'type', 'FRONT')
|
||||
kmi_props_setattr(kmi.properties, 'align_active', True)
|
||||
kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_3', 'PRESS', shift=True)
|
||||
kmi_props_setattr(kmi.properties, 'type', 'RIGHT')
|
||||
kmi_props_setattr(kmi.properties, 'align_active', True)
|
||||
kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_7', 'PRESS', shift=True)
|
||||
kmi_props_setattr(kmi.properties, 'type', 'TOP')
|
||||
kmi_props_setattr(kmi.properties, 'align_active', True)
|
||||
kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_1', 'PRESS', shift=True, ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'type', 'BACK')
|
||||
kmi_props_setattr(kmi.properties, 'align_active', True)
|
||||
kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_3', 'PRESS', shift=True, ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'type', 'LEFT')
|
||||
kmi_props_setattr(kmi.properties, 'align_active', True)
|
||||
kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_7', 'PRESS', shift=True, ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'type', 'BOTTOM')
|
||||
kmi_props_setattr(kmi.properties, 'align_active', True)
|
||||
kmi = km.keymap_items.new('view3d.localview', 'NUMPAD_SLASH', 'PRESS')
|
||||
kmi = km.keymap_items.new('view3d.ndof_orbit_zoom', 'NDOF_MOTION', 'ANY')
|
||||
kmi = km.keymap_items.new('view3d.ndof_orbit', 'NDOF_MOTION', 'ANY', ctrl=True)
|
||||
kmi = km.keymap_items.new('view3d.ndof_all', 'NDOF_MOTION', 'ANY', shift=True, ctrl=True)
|
||||
kmi = km.keymap_items.new('view3d.view_selected', 'NDOF_BUTTON_FIT', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'use_all_regions', False)
|
||||
kmi = km.keymap_items.new('view3d.view_roll', 'NDOF_BUTTON_ROLL_CCW', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'type', 'LEFT')
|
||||
kmi = km.keymap_items.new('view3d.view_roll', 'NDOF_BUTTON_ROLL_CCW', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'type', 'RIGHT')
|
||||
kmi = km.keymap_items.new('view3d.viewnumpad', 'NDOF_BUTTON_FRONT', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'type', 'FRONT')
|
||||
kmi = km.keymap_items.new('view3d.viewnumpad', 'NDOF_BUTTON_BACK', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'type', 'BACK')
|
||||
kmi = km.keymap_items.new('view3d.viewnumpad', 'NDOF_BUTTON_LEFT', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'type', 'LEFT')
|
||||
kmi = km.keymap_items.new('view3d.viewnumpad', 'NDOF_BUTTON_RIGHT', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'type', 'RIGHT')
|
||||
kmi = km.keymap_items.new('view3d.viewnumpad', 'NDOF_BUTTON_TOP', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'type', 'TOP')
|
||||
kmi = km.keymap_items.new('view3d.viewnumpad', 'NDOF_BUTTON_BOTTOM', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'type', 'BOTTOM')
|
||||
kmi = km.keymap_items.new('view3d.viewnumpad', 'NDOF_BUTTON_FRONT', 'PRESS', shift=True)
|
||||
kmi_props_setattr(kmi.properties, 'type', 'FRONT')
|
||||
kmi_props_setattr(kmi.properties, 'align_active', True)
|
||||
kmi = km.keymap_items.new('view3d.viewnumpad', 'NDOF_BUTTON_RIGHT', 'PRESS', shift=True)
|
||||
kmi_props_setattr(kmi.properties, 'type', 'RIGHT')
|
||||
kmi_props_setattr(kmi.properties, 'align_active', True)
|
||||
kmi = km.keymap_items.new('view3d.viewnumpad', 'NDOF_BUTTON_TOP', 'PRESS', shift=True)
|
||||
kmi_props_setattr(kmi.properties, 'type', 'TOP')
|
||||
kmi_props_setattr(kmi.properties, 'align_active', True)
|
||||
kmi = km.keymap_items.new('view3d.layers', 'ONE', 'PRESS', any=True)
|
||||
kmi_props_setattr(kmi.properties, 'nr', 1)
|
||||
kmi = km.keymap_items.new('view3d.layers', 'TWO', 'PRESS', any=True)
|
||||
kmi_props_setattr(kmi.properties, 'nr', 2)
|
||||
kmi = km.keymap_items.new('view3d.layers', 'THREE', 'PRESS', any=True)
|
||||
kmi_props_setattr(kmi.properties, 'nr', 3)
|
||||
kmi = km.keymap_items.new('view3d.layers', 'FOUR', 'PRESS', any=True)
|
||||
kmi_props_setattr(kmi.properties, 'nr', 4)
|
||||
kmi = km.keymap_items.new('view3d.layers', 'FIVE', 'PRESS', any=True)
|
||||
kmi_props_setattr(kmi.properties, 'nr', 5)
|
||||
kmi = km.keymap_items.new('view3d.layers', 'SIX', 'PRESS', any=True)
|
||||
kmi_props_setattr(kmi.properties, 'nr', 6)
|
||||
kmi = km.keymap_items.new('view3d.layers', 'SEVEN', 'PRESS', any=True)
|
||||
kmi_props_setattr(kmi.properties, 'nr', 7)
|
||||
kmi = km.keymap_items.new('view3d.layers', 'EIGHT', 'PRESS', any=True)
|
||||
kmi_props_setattr(kmi.properties, 'nr', 8)
|
||||
kmi = km.keymap_items.new('view3d.layers', 'NINE', 'PRESS', any=True)
|
||||
kmi_props_setattr(kmi.properties, 'nr', 9)
|
||||
kmi = km.keymap_items.new('view3d.layers', 'ZERO', 'PRESS', any=True)
|
||||
kmi_props_setattr(kmi.properties, 'nr', 10)
|
||||
kmi = km.keymap_items.new('wm.context_toggle_enum', 'Z', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'data_path', 'space_data.viewport_shade')
|
||||
kmi_props_setattr(kmi.properties, 'value_1', 'MATERIAL')
|
||||
kmi_props_setattr(kmi.properties, 'value_2', 'WIREFRAME')
|
||||
kmi = km.keymap_items.new('wm.context_toggle_enum', 'Z', 'PRESS', alt=True)
|
||||
kmi_props_setattr(kmi.properties, 'data_path', 'space_data.viewport_shade')
|
||||
kmi_props_setattr(kmi.properties, 'value_1', 'SOLID')
|
||||
kmi_props_setattr(kmi.properties, 'value_2', 'TEXTURED')
|
||||
kmi = km.keymap_items.new('view3d.toggle_render', 'Z', 'PRESS', shift=True)
|
||||
kmi = km.keymap_items.new('view3d.select', 'SELECTMOUSE', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'extend', False)
|
||||
kmi_props_setattr(kmi.properties, 'deselect', False)
|
||||
kmi_props_setattr(kmi.properties, 'toggle', False)
|
||||
kmi_props_setattr(kmi.properties, 'center', False)
|
||||
kmi_props_setattr(kmi.properties, 'enumerate', False)
|
||||
kmi_props_setattr(kmi.properties, 'object', False)
|
||||
kmi = km.keymap_items.new('view3d.select', 'SELECTMOUSE', 'PRESS', shift=True)
|
||||
kmi_props_setattr(kmi.properties, 'extend', False)
|
||||
kmi_props_setattr(kmi.properties, 'deselect', False)
|
||||
kmi_props_setattr(kmi.properties, 'toggle', True)
|
||||
kmi_props_setattr(kmi.properties, 'center', False)
|
||||
kmi_props_setattr(kmi.properties, 'enumerate', False)
|
||||
kmi_props_setattr(kmi.properties, 'object', False)
|
||||
kmi = km.keymap_items.new('view3d.select', 'SELECTMOUSE', 'PRESS', ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'extend', False)
|
||||
kmi_props_setattr(kmi.properties, 'deselect', False)
|
||||
kmi_props_setattr(kmi.properties, 'toggle', False)
|
||||
kmi_props_setattr(kmi.properties, 'center', True)
|
||||
kmi_props_setattr(kmi.properties, 'enumerate', False)
|
||||
kmi_props_setattr(kmi.properties, 'object', True)
|
||||
kmi = km.keymap_items.new('view3d.select', 'SELECTMOUSE', 'PRESS', alt=True)
|
||||
kmi_props_setattr(kmi.properties, 'extend', False)
|
||||
kmi_props_setattr(kmi.properties, 'deselect', False)
|
||||
kmi_props_setattr(kmi.properties, 'toggle', False)
|
||||
kmi_props_setattr(kmi.properties, 'center', False)
|
||||
kmi_props_setattr(kmi.properties, 'enumerate', True)
|
||||
kmi_props_setattr(kmi.properties, 'object', False)
|
||||
kmi = km.keymap_items.new('view3d.select', 'SELECTMOUSE', 'PRESS', shift=True, ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'extend', True)
|
||||
kmi_props_setattr(kmi.properties, 'deselect', False)
|
||||
kmi_props_setattr(kmi.properties, 'toggle', True)
|
||||
kmi_props_setattr(kmi.properties, 'center', True)
|
||||
kmi_props_setattr(kmi.properties, 'enumerate', False)
|
||||
kmi_props_setattr(kmi.properties, 'object', False)
|
||||
kmi = km.keymap_items.new('view3d.select', 'SELECTMOUSE', 'PRESS', ctrl=True, alt=True)
|
||||
kmi_props_setattr(kmi.properties, 'extend', False)
|
||||
kmi_props_setattr(kmi.properties, 'deselect', False)
|
||||
kmi_props_setattr(kmi.properties, 'toggle', False)
|
||||
kmi_props_setattr(kmi.properties, 'center', True)
|
||||
kmi_props_setattr(kmi.properties, 'enumerate', True)
|
||||
kmi_props_setattr(kmi.properties, 'object', False)
|
||||
kmi = km.keymap_items.new('view3d.select', 'SELECTMOUSE', 'PRESS', shift=True, alt=True)
|
||||
kmi_props_setattr(kmi.properties, 'extend', False)
|
||||
kmi_props_setattr(kmi.properties, 'deselect', False)
|
||||
kmi_props_setattr(kmi.properties, 'toggle', True)
|
||||
kmi_props_setattr(kmi.properties, 'center', False)
|
||||
kmi_props_setattr(kmi.properties, 'enumerate', True)
|
||||
kmi_props_setattr(kmi.properties, 'object', False)
|
||||
kmi = km.keymap_items.new('view3d.select', 'SELECTMOUSE', 'PRESS', shift=True, ctrl=True, alt=True)
|
||||
kmi_props_setattr(kmi.properties, 'extend', False)
|
||||
kmi_props_setattr(kmi.properties, 'deselect', False)
|
||||
kmi_props_setattr(kmi.properties, 'toggle', True)
|
||||
kmi_props_setattr(kmi.properties, 'center', True)
|
||||
kmi_props_setattr(kmi.properties, 'enumerate', True)
|
||||
kmi_props_setattr(kmi.properties, 'object', False)
|
||||
kmi = km.keymap_items.new('view3d.select_border', 'B', 'PRESS')
|
||||
kmi = km.keymap_items.new('view3d.select_lasso', 'EVT_TWEAK_A', 'ANY', ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'deselect', False)
|
||||
kmi = km.keymap_items.new('view3d.select_lasso', 'EVT_TWEAK_A', 'ANY', shift=True, ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'deselect', True)
|
||||
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_props_setattr(kmi.properties, 'camera_only', True)
|
||||
kmi = km.keymap_items.new('view3d.render_border', 'B', 'PRESS', ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'camera_only', False)
|
||||
kmi = km.keymap_items.new('view3d.clear_render_border', 'B', 'PRESS', ctrl=True, alt=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)
|
||||
kmi = km.keymap_items.new('wm.call_menu', 'S', 'PRESS', shift=True)
|
||||
kmi_props_setattr(kmi.properties, 'name', 'VIEW3D_MT_snap')
|
||||
kmi = km.keymap_items.new('view3d.copybuffer', 'C', 'PRESS', ctrl=True)
|
||||
kmi = km.keymap_items.new('view3d.pastebuffer', 'V', 'PRESS', ctrl=True)
|
||||
kmi = km.keymap_items.new('wm.context_set_enum', 'COMMA', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'data_path', 'space_data.pivot_point')
|
||||
kmi_props_setattr(kmi.properties, 'value', 'BOUNDING_BOX_CENTER')
|
||||
kmi = km.keymap_items.new('wm.context_set_enum', 'COMMA', 'PRESS', ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'data_path', 'space_data.pivot_point')
|
||||
kmi_props_setattr(kmi.properties, 'value', 'MEDIAN_POINT')
|
||||
kmi = km.keymap_items.new('wm.context_toggle', 'COMMA', 'PRESS', alt=True)
|
||||
kmi_props_setattr(kmi.properties, 'data_path', 'space_data.use_pivot_point_align')
|
||||
kmi = km.keymap_items.new('wm.context_toggle', 'SPACE', 'PRESS', ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'data_path', 'space_data.show_manipulator')
|
||||
kmi = km.keymap_items.new('wm.context_set_enum', 'PERIOD', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'data_path', 'space_data.pivot_point')
|
||||
kmi_props_setattr(kmi.properties, 'value', 'CURSOR')
|
||||
kmi = km.keymap_items.new('wm.context_set_enum', 'PERIOD', 'PRESS', ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'data_path', 'space_data.pivot_point')
|
||||
kmi_props_setattr(kmi.properties, 'value', 'INDIVIDUAL_ORIGINS')
|
||||
kmi = km.keymap_items.new('wm.context_set_enum', 'PERIOD', 'PRESS', alt=True)
|
||||
kmi_props_setattr(kmi.properties, 'data_path', 'space_data.pivot_point')
|
||||
kmi_props_setattr(kmi.properties, 'value', 'ACTIVE_ELEMENT')
|
||||
kmi = km.keymap_items.new('transform.translate', 'G', 'PRESS')
|
||||
kmi = km.keymap_items.new('transform.translate', 'EVT_TWEAK_S', 'ANY')
|
||||
kmi = km.keymap_items.new('transform.rotate', 'R', 'PRESS')
|
||||
kmi = km.keymap_items.new('transform.resize', 'S', 'PRESS')
|
||||
kmi = km.keymap_items.new('transform.bend', '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)
|
||||
kmi_props_setattr(kmi.properties, 'use', True)
|
||||
kmi = km.keymap_items.new('transform.mirror', 'M', 'PRESS', ctrl=True)
|
||||
kmi = km.keymap_items.new('wm.context_toggle', 'TAB', 'PRESS', shift=True)
|
||||
kmi_props_setattr(kmi.properties, 'data_path', 'tool_settings.use_snap')
|
||||
kmi = km.keymap_items.new('transform.translate', 'T', 'PRESS', shift=True)
|
||||
kmi_props_setattr(kmi.properties, 'texture_space', True)
|
||||
kmi = km.keymap_items.new('transform.resize', 'T', 'PRESS', shift=True, alt=True)
|
||||
kmi_props_setattr(kmi.properties, 'texture_space', True)
|
||||
kmi = km.keymap_items.new('transform.skin_resize', 'A', 'PRESS', ctrl=True)
|
||||
|
||||
# Map Image
|
||||
km = kc.keymaps.new('Image', space_type='IMAGE_EDITOR', region_type='WINDOW', modal=False)
|
||||
|
||||
kmi = km.keymap_items.new('image.view_all', 'HOME', 'PRESS')
|
||||
kmi = km.keymap_items.new('image.view_all', 'HOME', 'PRESS', shift=True)
|
||||
kmi_props_setattr(kmi.properties, 'fit_view', True)
|
||||
kmi = km.keymap_items.new('image.view_selected', 'NUMPAD_PERIOD', 'PRESS')
|
||||
kmi = km.keymap_items.new('image.view_pan', 'MIDDLEMOUSE', 'PRESS')
|
||||
kmi = km.keymap_items.new('image.view_pan', 'MIDDLEMOUSE', 'PRESS', ctrl=True)
|
||||
kmi = km.keymap_items.new('image.view_pan', 'TRACKPADPAN', 'ANY')
|
||||
kmi = km.keymap_items.new('image.view_all', 'NDOF_BUTTON_FIT', 'PRESS')
|
||||
kmi = km.keymap_items.new('image.view_ndof', 'NDOF_MOTION', 'ANY')
|
||||
kmi = km.keymap_items.new('image.view_zoom_in', 'WHEELINMOUSE', 'PRESS')
|
||||
kmi = km.keymap_items.new('image.view_zoom_out', 'WHEELOUTMOUSE', 'PRESS')
|
||||
kmi = km.keymap_items.new('image.view_zoom_in', 'NUMPAD_PLUS', 'PRESS')
|
||||
kmi = km.keymap_items.new('image.view_zoom_out', 'NUMPAD_MINUS', 'PRESS')
|
||||
kmi = km.keymap_items.new('image.view_zoom', 'MIDDLEMOUSE', 'PRESS', shift=True)
|
||||
kmi = km.keymap_items.new('image.view_zoom', 'MIDDLEMOUSE', 'ANY', shift=True)
|
||||
kmi = km.keymap_items.new('image.view_zoom_border', 'B', 'PRESS', shift=True)
|
||||
kmi = km.keymap_items.new('image.view_zoom_ratio', 'NUMPAD_8', 'PRESS', ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'ratio', 8.0)
|
||||
kmi = km.keymap_items.new('image.view_zoom_ratio', 'NUMPAD_4', 'PRESS', ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'ratio', 4.0)
|
||||
kmi = km.keymap_items.new('image.view_zoom_ratio', 'NUMPAD_2', 'PRESS', ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'ratio', 2.0)
|
||||
kmi = km.keymap_items.new('image.view_zoom_ratio', 'NUMPAD_8', 'PRESS', shift=True)
|
||||
kmi_props_setattr(kmi.properties, 'ratio', 8.0)
|
||||
kmi = km.keymap_items.new('image.view_zoom_ratio', 'NUMPAD_4', 'PRESS', shift=True)
|
||||
kmi_props_setattr(kmi.properties, 'ratio', 4.0)
|
||||
kmi = km.keymap_items.new('image.view_zoom_ratio', 'NUMPAD_2', 'PRESS', shift=True)
|
||||
kmi_props_setattr(kmi.properties, 'ratio', 2.0)
|
||||
kmi = km.keymap_items.new('image.view_zoom_ratio', 'NUMPAD_1', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'ratio', 1.0)
|
||||
kmi = km.keymap_items.new('image.view_zoom_ratio', 'NUMPAD_2', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'ratio', 0.5)
|
||||
kmi = km.keymap_items.new('image.view_zoom_ratio', 'NUMPAD_4', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'ratio', 0.25)
|
||||
kmi = km.keymap_items.new('image.view_zoom_ratio', 'NUMPAD_8', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'ratio', 0.125)
|
||||
kmi = km.keymap_items.new('image.change_frame', 'LEFTMOUSE', 'PRESS')
|
||||
kmi = km.keymap_items.new('image.sample', 'ACTIONMOUSE', 'PRESS')
|
||||
kmi = km.keymap_items.new('image.curves_point_set', 'ACTIONMOUSE', 'PRESS', ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'point', 'BLACK_POINT')
|
||||
kmi = km.keymap_items.new('image.curves_point_set', 'ACTIONMOUSE', 'PRESS', shift=True)
|
||||
kmi_props_setattr(kmi.properties, 'point', 'WHITE_POINT')
|
||||
kmi = km.keymap_items.new('object.mode_set', 'TAB', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'mode', 'EDIT')
|
||||
kmi_props_setattr(kmi.properties, 'toggle', True)
|
||||
kmi = km.keymap_items.new('wm.context_set_int', 'ONE', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'data_path', 'space_data.image.render_slots.active_index')
|
||||
kmi_props_setattr(kmi.properties, 'value', 0)
|
||||
kmi = km.keymap_items.new('wm.context_set_int', 'TWO', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'data_path', 'space_data.image.render_slots.active_index')
|
||||
kmi_props_setattr(kmi.properties, 'value', 1)
|
||||
kmi = km.keymap_items.new('wm.context_set_int', 'THREE', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'data_path', 'space_data.image.render_slots.active_index')
|
||||
kmi_props_setattr(kmi.properties, 'value', 2)
|
||||
kmi = km.keymap_items.new('wm.context_set_int', 'FOUR', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'data_path', 'space_data.image.render_slots.active_index')
|
||||
kmi_props_setattr(kmi.properties, 'value', 3)
|
||||
kmi = km.keymap_items.new('wm.context_set_int', 'FIVE', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'data_path', 'space_data.image.render_slots.active_index')
|
||||
kmi_props_setattr(kmi.properties, 'value', 4)
|
||||
kmi = km.keymap_items.new('wm.context_set_int', 'SIX', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'data_path', 'space_data.image.render_slots.active_index')
|
||||
kmi_props_setattr(kmi.properties, 'value', 5)
|
||||
kmi = km.keymap_items.new('wm.context_set_int', 'SEVEN', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'data_path', 'space_data.image.render_slots.active_index')
|
||||
kmi_props_setattr(kmi.properties, 'value', 6)
|
||||
kmi = km.keymap_items.new('wm.context_set_int', 'EIGHT', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'data_path', 'space_data.image.render_slots.active_index')
|
||||
kmi_props_setattr(kmi.properties, 'value', 7)
|
||||
kmi = km.keymap_items.new('wm.context_set_enum', 'COMMA', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'data_path', 'space_data.pivot_point')
|
||||
kmi_props_setattr(kmi.properties, 'value', 'CENTER')
|
||||
kmi = km.keymap_items.new('wm.context_set_enum', 'COMMA', 'PRESS', ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'data_path', 'space_data.pivot_point')
|
||||
kmi_props_setattr(kmi.properties, 'value', 'MEDIAN')
|
||||
kmi = km.keymap_items.new('wm.context_set_enum', 'PERIOD', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'data_path', 'space_data.pivot_point')
|
||||
kmi_props_setattr(kmi.properties, 'value', 'CURSOR')
|
||||
kmi = km.keymap_items.new('image.render_border', 'B', 'PRESS', ctrl=True)
|
||||
kmi = km.keymap_items.new('image.clear_render_border', 'B', 'PRESS', ctrl=True, alt=True)
|
||||
|
||||
# Map Clip Editor
|
||||
km = kc.keymaps.new('Clip Editor', space_type='CLIP_EDITOR', region_type='WINDOW', modal=False)
|
||||
|
||||
kmi = km.keymap_items.new('clip.view_pan', 'MIDDLEMOUSE', 'PRESS')
|
||||
kmi = km.keymap_items.new('clip.view_pan', 'MIDDLEMOUSE', 'PRESS', ctrl=True)
|
||||
kmi = km.keymap_items.new('clip.view_pan', 'TRACKPADPAN', 'ANY')
|
||||
kmi = km.keymap_items.new('clip.view_zoom', 'MIDDLEMOUSE', 'PRESS', shift=True)
|
||||
kmi = km.keymap_items.new('clip.view_zoom', 'MIDDLEMOUSE', 'ANY', shift=True)
|
||||
kmi = km.keymap_items.new('clip.view_zoom_in', 'WHEELINMOUSE', 'PRESS')
|
||||
kmi = km.keymap_items.new('clip.view_zoom_out', 'WHEELOUTMOUSE', 'PRESS')
|
||||
kmi = km.keymap_items.new('clip.view_zoom_in', 'NUMPAD_PLUS', 'PRESS')
|
||||
kmi = km.keymap_items.new('clip.view_zoom_out', 'NUMPAD_MINUS', 'PRESS')
|
||||
kmi = km.keymap_items.new('clip.view_zoom_ratio', 'NUMPAD_8', 'PRESS', ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'ratio', 8.0)
|
||||
kmi = km.keymap_items.new('clip.view_zoom_ratio', 'NUMPAD_4', 'PRESS', ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'ratio', 4.0)
|
||||
kmi = km.keymap_items.new('clip.view_zoom_ratio', 'NUMPAD_2', 'PRESS', ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'ratio', 2.0)
|
||||
kmi = km.keymap_items.new('clip.view_zoom_ratio', 'NUMPAD_8', 'PRESS', shift=True)
|
||||
kmi_props_setattr(kmi.properties, 'ratio', 8.0)
|
||||
kmi = km.keymap_items.new('clip.view_zoom_ratio', 'NUMPAD_4', 'PRESS', shift=True)
|
||||
kmi_props_setattr(kmi.properties, 'ratio', 4.0)
|
||||
kmi = km.keymap_items.new('clip.view_zoom_ratio', 'NUMPAD_2', 'PRESS', shift=True)
|
||||
kmi_props_setattr(kmi.properties, 'ratio', 2.0)
|
||||
kmi = km.keymap_items.new('clip.view_zoom_ratio', 'NUMPAD_1', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'ratio', 1.0)
|
||||
kmi = km.keymap_items.new('clip.view_zoom_ratio', 'NUMPAD_2', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'ratio', 0.5)
|
||||
kmi = km.keymap_items.new('clip.view_zoom_ratio', 'NUMPAD_4', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'ratio', 0.25)
|
||||
kmi = km.keymap_items.new('clip.view_zoom_ratio', 'NUMPAD_8', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'ratio', 0.125)
|
||||
kmi = km.keymap_items.new('clip.view_all', 'HOME', 'PRESS')
|
||||
kmi = km.keymap_items.new('clip.view_all', 'F', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'fit_view', True)
|
||||
kmi = km.keymap_items.new('clip.view_selected', 'NUMPAD_PERIOD', 'PRESS')
|
||||
kmi = km.keymap_items.new('clip.view_all', 'NDOF_BUTTON_FIT', 'PRESS')
|
||||
kmi = km.keymap_items.new('clip.view_ndof', 'NDOF_MOTION', 'ANY')
|
||||
kmi = km.keymap_items.new('clip.frame_jump', 'LEFT_ARROW', 'PRESS', shift=True, ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'position', 'PATHSTART')
|
||||
kmi = km.keymap_items.new('clip.frame_jump', 'RIGHT_ARROW', 'PRESS', shift=True, ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'position', 'PATHEND')
|
||||
kmi = km.keymap_items.new('clip.frame_jump', 'LEFT_ARROW', 'PRESS', shift=True, alt=True)
|
||||
kmi_props_setattr(kmi.properties, 'position', 'FAILEDPREV')
|
||||
kmi = km.keymap_items.new('clip.frame_jump', 'RIGHT_ARROW', 'PRESS', shift=True, alt=True)
|
||||
kmi_props_setattr(kmi.properties, 'position', 'PATHSTART')
|
||||
kmi = km.keymap_items.new('clip.change_frame', 'LEFTMOUSE', 'PRESS')
|
||||
kmi = km.keymap_items.new('clip.select', 'SELECTMOUSE', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'extend', False)
|
||||
kmi = km.keymap_items.new('clip.select', 'SELECTMOUSE', 'PRESS', shift=True)
|
||||
kmi_props_setattr(kmi.properties, 'extend', True)
|
||||
kmi = km.keymap_items.new('clip.select_all', 'A', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'action', 'TOGGLE')
|
||||
kmi = km.keymap_items.new('clip.select_all', 'I', 'PRESS', ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'action', 'INVERT')
|
||||
kmi = km.keymap_items.new('clip.select_border', 'B', 'PRESS')
|
||||
kmi = km.keymap_items.new('clip.select_circle', 'C', 'PRESS')
|
||||
kmi = km.keymap_items.new('wm.call_menu', 'G', 'PRESS', shift=True)
|
||||
kmi_props_setattr(kmi.properties, 'name', 'CLIP_MT_select_grouped')
|
||||
kmi = km.keymap_items.new('clip.select_lasso', 'EVT_TWEAK_A', 'ANY', ctrl=True, alt=True)
|
||||
kmi_props_setattr(kmi.properties, 'deselect', False)
|
||||
kmi = km.keymap_items.new('clip.select_lasso', 'EVT_TWEAK_A', 'ANY', shift=True, ctrl=True, alt=True)
|
||||
kmi_props_setattr(kmi.properties, 'deselect', True)
|
||||
kmi = km.keymap_items.new('clip.add_marker_slide', 'LEFTMOUSE', 'PRESS', ctrl=True)
|
||||
kmi = km.keymap_items.new('clip.delete_marker', 'DEL', 'PRESS', shift=True)
|
||||
kmi = km.keymap_items.new('clip.delete_marker', 'X', 'PRESS', shift=True)
|
||||
kmi = km.keymap_items.new('clip.slide_marker', 'LEFTMOUSE', 'PRESS')
|
||||
kmi = km.keymap_items.new('clip.disable_markers', 'D', 'PRESS', shift=True)
|
||||
kmi_props_setattr(kmi.properties, 'action', 'TOGGLE')
|
||||
kmi = km.keymap_items.new('clip.delete_track', 'DEL', 'PRESS')
|
||||
kmi = km.keymap_items.new('clip.delete_track', 'X', 'PRESS')
|
||||
kmi = km.keymap_items.new('clip.lock_tracks', 'L', 'PRESS', ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'action', 'LOCK')
|
||||
kmi = km.keymap_items.new('clip.lock_tracks', 'L', 'PRESS', alt=True)
|
||||
kmi_props_setattr(kmi.properties, 'action', 'UNLOCK')
|
||||
kmi = km.keymap_items.new('clip.hide_tracks', 'H', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'unselected', False)
|
||||
kmi = km.keymap_items.new('clip.hide_tracks', 'H', 'PRESS', shift=True)
|
||||
kmi_props_setattr(kmi.properties, 'unselected', True)
|
||||
kmi = km.keymap_items.new('clip.hide_tracks_clear', 'H', 'PRESS', alt=True)
|
||||
kmi = km.keymap_items.new('clip.slide_plane_marker', 'ACTIONMOUSE', 'PRESS')
|
||||
kmi = km.keymap_items.new('clip.keyframe_insert', 'I', 'PRESS')
|
||||
kmi = km.keymap_items.new('clip.keyframe_delete', 'I', 'PRESS', alt=True)
|
||||
kmi = km.keymap_items.new('clip.join_tracks', 'J', 'PRESS', ctrl=True)
|
||||
kmi = km.keymap_items.new('wm.call_menu', 'W', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'name', 'CLIP_MT_tracking_specials')
|
||||
kmi = km.keymap_items.new('wm.context_toggle', 'L', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'data_path', 'space_data.lock_selection')
|
||||
kmi = km.keymap_items.new('wm.context_toggle', 'D', 'PRESS', alt=True)
|
||||
kmi_props_setattr(kmi.properties, 'data_path', 'space_data.show_disabled')
|
||||
kmi = km.keymap_items.new('wm.context_toggle', 'S', 'PRESS', alt=True)
|
||||
kmi_props_setattr(kmi.properties, 'data_path', 'space_data.show_marker_search')
|
||||
kmi = km.keymap_items.new('wm.context_toggle', 'M', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'data_path', 'space_data.use_mute_footage')
|
||||
kmi = km.keymap_items.new('transform.translate', 'G', 'PRESS')
|
||||
kmi = km.keymap_items.new('transform.translate', 'EVT_TWEAK_S', 'ANY')
|
||||
kmi = km.keymap_items.new('transform.resize', 'S', 'PRESS')
|
||||
kmi = km.keymap_items.new('transform.rotate', 'R', 'PRESS')
|
||||
kmi = km.keymap_items.new('clip.clear_track_path', 'T', 'PRESS', alt=True)
|
||||
kmi_props_setattr(kmi.properties, 'action', 'REMAINED')
|
||||
kmi_props_setattr(kmi.properties, 'clear_active', False)
|
||||
kmi = km.keymap_items.new('clip.clear_track_path', 'T', 'PRESS', shift=True)
|
||||
kmi_props_setattr(kmi.properties, 'action', 'UPTO')
|
||||
kmi_props_setattr(kmi.properties, 'clear_active', False)
|
||||
kmi = km.keymap_items.new('clip.clear_track_path', 'T', 'PRESS', shift=True, alt=True)
|
||||
kmi_props_setattr(kmi.properties, 'action', 'ALL')
|
||||
kmi_props_setattr(kmi.properties, 'clear_active', False)
|
||||
kmi = km.keymap_items.new('clip.cursor_set', 'ACTIONMOUSE', 'PRESS')
|
||||
kmi = km.keymap_items.new('wm.context_set_enum', 'COMMA', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'data_path', 'space_data.pivot_point')
|
||||
kmi_props_setattr(kmi.properties, 'value', 'BOUNDING_BOX_CENTER')
|
||||
kmi = km.keymap_items.new('wm.context_set_enum', 'COMMA', 'PRESS', ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'data_path', 'space_data.pivot_point')
|
||||
kmi_props_setattr(kmi.properties, 'value', 'MEDIAN_POINT')
|
||||
kmi = km.keymap_items.new('wm.context_set_enum', 'PERIOD', 'PRESS')
|
||||
kmi_props_setattr(kmi.properties, 'data_path', 'space_data.pivot_point')
|
||||
kmi_props_setattr(kmi.properties, 'value', 'CURSOR')
|
||||
kmi = km.keymap_items.new('wm.context_set_enum', 'PERIOD', 'PRESS', ctrl=True)
|
||||
kmi_props_setattr(kmi.properties, 'data_path', 'space_data.pivot_point')
|
||||
kmi_props_setattr(kmi.properties, 'value', 'INDIVIDUAL_ORIGINS')
|
||||
kmi = km.keymap_items.new('clip.copy_tracks', 'C', 'PRESS', ctrl=True)
|
||||
kmi = km.keymap_items.new('clip.paste_tracks', 'V', 'PRESS', ctrl=True)
|
||||
|
Loading…
Reference in New Issue
Block a user