2009-11-01 15:21:20 +00:00
|
|
|
# ##### BEGIN GPL LICENSE BLOCK #####
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
# as published by the Free Software Foundation; either version 2
|
|
|
|
# of the License, or (at your option) any later version.
|
2009-11-03 07:23:02 +00:00
|
|
|
#
|
2009-11-01 15:21:20 +00:00
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
2009-11-03 07:23:02 +00:00
|
|
|
#
|
2009-11-01 15:21:20 +00:00
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software Foundation,
|
2010-02-12 13:34:04 +00:00
|
|
|
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2009-11-01 15:21:20 +00:00
|
|
|
#
|
|
|
|
# ##### END GPL LICENSE BLOCK #####
|
2009-10-31 20:16:59 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
# <pep8 compliant>
|
2009-08-18 12:58:51 +00:00
|
|
|
import bpy
|
2011-09-22 19:50:41 +00:00
|
|
|
from bpy.types import Header, Menu, Panel
|
2010-01-31 14:46:28 +00:00
|
|
|
import os
|
2011-02-21 07:07:44 +00:00
|
|
|
import addon_utils
|
2010-01-31 14:46:28 +00:00
|
|
|
|
2011-06-24 03:30:50 +00:00
|
|
|
|
2010-01-09 18:17:40 +00:00
|
|
|
def ui_items_general(col, context):
|
2010-01-31 14:46:28 +00:00
|
|
|
""" General UI Theme Settings (User Interface)
|
|
|
|
"""
|
2010-07-05 22:22:22 +00:00
|
|
|
|
2010-01-09 18:17:40 +00:00
|
|
|
row = col.row()
|
2010-06-26 17:06:55 +00:00
|
|
|
|
2010-07-05 22:22:22 +00:00
|
|
|
subsplit = row.split(percentage=0.95)
|
|
|
|
|
2010-06-26 17:06:55 +00:00
|
|
|
padding = subsplit.split(percentage=0.15)
|
|
|
|
colsub = padding.column()
|
|
|
|
colsub = padding.column()
|
|
|
|
colsub.row().prop(context, "outline")
|
|
|
|
colsub.row().prop(context, "item", slider=True)
|
|
|
|
colsub.row().prop(context, "inner", slider=True)
|
|
|
|
colsub.row().prop(context, "inner_sel", slider=True)
|
2010-07-05 22:22:22 +00:00
|
|
|
|
|
|
|
subsplit = row.split(percentage=0.85)
|
|
|
|
|
2010-06-26 17:06:55 +00:00
|
|
|
padding = subsplit.split(percentage=0.15)
|
|
|
|
colsub = padding.column()
|
|
|
|
colsub = padding.column()
|
|
|
|
colsub.row().prop(context, "text")
|
|
|
|
colsub.row().prop(context, "text_sel")
|
2010-08-17 13:14:41 +00:00
|
|
|
colsub.prop(context, "show_shaded")
|
2010-06-26 17:06:55 +00:00
|
|
|
subsub = colsub.column(align=True)
|
2010-08-17 13:14:41 +00:00
|
|
|
subsub.active = context.show_shaded
|
2010-01-09 12:05:30 +00:00
|
|
|
subsub.prop(context, "shadetop")
|
|
|
|
subsub.prop(context, "shadedown")
|
2010-01-31 14:46:28 +00:00
|
|
|
|
2010-01-09 18:17:40 +00:00
|
|
|
col.separator()
|
2010-01-31 14:46:28 +00:00
|
|
|
|
2010-07-05 22:22:22 +00:00
|
|
|
|
2010-01-09 15:49:27 +00:00
|
|
|
def opengl_lamp_buttons(column, lamp):
|
|
|
|
split = column.split(percentage=0.1)
|
|
|
|
|
2010-08-18 10:42:00 +00:00
|
|
|
split.prop(lamp, "use", text="", icon='OUTLINER_OB_LAMP' if lamp.use else 'LAMP_DATA')
|
2010-01-09 15:49:27 +00:00
|
|
|
|
|
|
|
col = split.column()
|
2010-08-18 10:42:00 +00:00
|
|
|
col.active = lamp.use
|
2010-01-09 15:49:27 +00:00
|
|
|
row = col.row()
|
2011-09-21 15:18:38 +00:00
|
|
|
row.label(text="Diffuse:")
|
2010-01-09 15:49:27 +00:00
|
|
|
row.prop(lamp, "diffuse_color", text="")
|
|
|
|
row = col.row()
|
2011-09-21 15:18:38 +00:00
|
|
|
row.label(text="Specular:")
|
2010-01-09 15:49:27 +00:00
|
|
|
row.prop(lamp, "specular_color", text="")
|
|
|
|
|
|
|
|
col = split.column()
|
2010-08-18 10:42:00 +00:00
|
|
|
col.active = lamp.use
|
2010-01-09 15:49:27 +00:00
|
|
|
col.prop(lamp, "direction", text="")
|
2010-01-09 12:05:30 +00:00
|
|
|
|
2010-04-17 19:05:53 +00:00
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class USERPREF_HT_header(Header):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_space_type = 'USER_PREFERENCES'
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
layout.template_header(menus=False)
|
|
|
|
|
|
|
|
userpref = context.user_preferences
|
|
|
|
|
2009-11-16 13:59:27 +00:00
|
|
|
layout.operator_context = 'EXEC_AREA'
|
2011-09-21 15:18:38 +00:00
|
|
|
layout.operator("wm.save_homefile", text="Save As Default")
|
2010-04-04 14:52:15 +00:00
|
|
|
|
2010-03-30 04:27:13 +00:00
|
|
|
layout.operator_context = 'INVOKE_DEFAULT'
|
2010-04-04 14:52:15 +00:00
|
|
|
|
2009-10-31 19:31:45 +00:00
|
|
|
if userpref.active_section == 'INPUT':
|
2010-08-14 05:33:20 +00:00
|
|
|
layout.operator("wm.keyconfig_import")
|
2012-01-01 10:05:04 +00:00
|
|
|
layout.operator("wm.keyconfig_export")
|
2010-02-26 14:28:29 +00:00
|
|
|
elif userpref.active_section == 'ADDONS':
|
2010-08-14 05:33:20 +00:00
|
|
|
layout.operator("wm.addon_install")
|
2011-06-24 03:30:50 +00:00
|
|
|
layout.menu("USERPREF_MT_addons_dev_guides")
|
2010-04-04 14:52:15 +00:00
|
|
|
elif userpref.active_section == 'THEMES':
|
2010-08-14 05:33:20 +00:00
|
|
|
layout.operator("ui.reset_default_theme")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-04-17 19:05:53 +00:00
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class USERPREF_PT_tabs(Panel):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = ""
|
|
|
|
bl_space_type = 'USER_PREFERENCES'
|
|
|
|
bl_region_type = 'WINDOW'
|
2010-08-26 01:05:37 +00:00
|
|
|
bl_options = {'HIDE_HEADER'}
|
2009-08-18 12:58:51 +00:00
|
|
|
|
2009-10-31 19:31:45 +00:00
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2009-08-18 12:58:51 +00:00
|
|
|
|
2009-10-31 19:31:45 +00:00
|
|
|
userpref = context.user_preferences
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.prop(userpref, "active_section", expand=True)
|
2009-08-18 12:58:51 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class USERPREF_MT_interaction_presets(Menu):
|
2011-09-15 13:20:18 +00:00
|
|
|
bl_label = "Presets"
|
* Interaction Presets
This adds a new presets menu in the splash screen and the Input section of
User Preferences to choose a preset interaction style, consisting of key configurations
and also other user preferences such as select mouse button, view rotation style, etc.
Currently, just 'Blender' and 'Maya' presets are included, hopefully we can have more
presets contributed (and maintained!) by the community.
It's best to keep these presets minimal to avoid too many key conflicts. In the Maya one
I changed the view manipulation key/mouse combos and also the transform
manipulator keys, not much more than that.
To save an interaction preset, open the user preferences Input section, and press the
[ + ] button next to the presets menu. It will save out a .py file containing any edited key
maps and navigation preferences to the presets/interaction folder in your scripts folder.
---
Part of this commit changes the way that key maps are exported/displayed in
preferences - now partial key configs are allowed. Previously it would export/import the
entire key configuration, regardless of whether individual key maps were edited or not
(which would make them more susceptible to conflicts in unexpected areas).
(note, in blender terminology, a key map is a category of key items, such as
'Object Mode' or 'View 2d'.)
Now, the export and the UI display work in a similar way to how key maps are
processed internally - Locally edited key maps (after pressing the 'Edit' button) are
processed first, falling back to other key maps in the current key config, and then falling
back to the default key config. So it's possible for a key config to only include a few
key maps, and the rest just gets pulled from the default key config. The preferences
UI display works like this too behind the scenes in deciding what to show users,
however using it is just like it was before, the complexity is hidden.
2010-04-14 06:27:50 +00:00
|
|
|
preset_subdir = "interaction"
|
|
|
|
preset_operator = "script.execute_preset"
|
2011-08-12 06:57:00 +00:00
|
|
|
draw = Menu.draw_preset
|
2010-04-17 19:05:53 +00:00
|
|
|
|
2011-04-01 02:41:15 +00:00
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class USERPREF_MT_appconfigs(Menu):
|
2011-03-27 21:45:37 +00:00
|
|
|
bl_label = "AppPresets"
|
|
|
|
preset_subdir = "keyconfig"
|
|
|
|
preset_operator = "wm.appconfig_activate"
|
|
|
|
|
|
|
|
def draw(self, context):
|
2011-09-21 15:18:38 +00:00
|
|
|
self.layout.operator("wm.appconfig_default", text="Blender (default)")
|
2011-03-27 21:45:37 +00:00
|
|
|
|
|
|
|
# now draw the presets
|
2011-08-12 06:57:00 +00:00
|
|
|
Menu.draw_preset(self, context)
|
2010-04-17 19:05:53 +00:00
|
|
|
|
2011-04-01 02:41:15 +00:00
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class USERPREF_MT_splash(Menu):
|
* Interaction Presets
This adds a new presets menu in the splash screen and the Input section of
User Preferences to choose a preset interaction style, consisting of key configurations
and also other user preferences such as select mouse button, view rotation style, etc.
Currently, just 'Blender' and 'Maya' presets are included, hopefully we can have more
presets contributed (and maintained!) by the community.
It's best to keep these presets minimal to avoid too many key conflicts. In the Maya one
I changed the view manipulation key/mouse combos and also the transform
manipulator keys, not much more than that.
To save an interaction preset, open the user preferences Input section, and press the
[ + ] button next to the presets menu. It will save out a .py file containing any edited key
maps and navigation preferences to the presets/interaction folder in your scripts folder.
---
Part of this commit changes the way that key maps are exported/displayed in
preferences - now partial key configs are allowed. Previously it would export/import the
entire key configuration, regardless of whether individual key maps were edited or not
(which would make them more susceptible to conflicts in unexpected areas).
(note, in blender terminology, a key map is a category of key items, such as
'Object Mode' or 'View 2d'.)
Now, the export and the UI display work in a similar way to how key maps are
processed internally - Locally edited key maps (after pressing the 'Edit' button) are
processed first, falling back to other key maps in the current key config, and then falling
back to the default key config. So it's possible for a key config to only include a few
key maps, and the rest just gets pulled from the default key config. The preferences
UI display works like this too behind the scenes in deciding what to show users,
however using it is just like it was before, the complexity is hidden.
2010-04-14 06:27:50 +00:00
|
|
|
bl_label = "Splash"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
split = layout.split()
|
|
|
|
row = split.row()
|
|
|
|
row.label("")
|
|
|
|
row = split.row()
|
2011-09-21 15:18:38 +00:00
|
|
|
row.label("Interaction:")
|
2010-10-06 20:29:00 +00:00
|
|
|
# XXX, no redraws
|
|
|
|
# text = bpy.path.display_name(context.window_manager.keyconfigs.active.name)
|
|
|
|
# if not text:
|
|
|
|
# text = "Blender (default)"
|
2011-09-21 15:18:38 +00:00
|
|
|
row.menu("USERPREF_MT_appconfigs", text="Preset")
|
2010-04-17 19:05:53 +00:00
|
|
|
|
* Interaction Presets
This adds a new presets menu in the splash screen and the Input section of
User Preferences to choose a preset interaction style, consisting of key configurations
and also other user preferences such as select mouse button, view rotation style, etc.
Currently, just 'Blender' and 'Maya' presets are included, hopefully we can have more
presets contributed (and maintained!) by the community.
It's best to keep these presets minimal to avoid too many key conflicts. In the Maya one
I changed the view manipulation key/mouse combos and also the transform
manipulator keys, not much more than that.
To save an interaction preset, open the user preferences Input section, and press the
[ + ] button next to the presets menu. It will save out a .py file containing any edited key
maps and navigation preferences to the presets/interaction folder in your scripts folder.
---
Part of this commit changes the way that key maps are exported/displayed in
preferences - now partial key configs are allowed. Previously it would export/import the
entire key configuration, regardless of whether individual key maps were edited or not
(which would make them more susceptible to conflicts in unexpected areas).
(note, in blender terminology, a key map is a category of key items, such as
'Object Mode' or 'View 2d'.)
Now, the export and the UI display work in a similar way to how key maps are
processed internally - Locally edited key maps (after pressing the 'Edit' button) are
processed first, falling back to other key maps in the current key config, and then falling
back to the default key config. So it's possible for a key config to only include a few
key maps, and the rest just gets pulled from the default key config. The preferences
UI display works like this too behind the scenes in deciding what to show users,
however using it is just like it was before, the complexity is hidden.
2010-04-14 06:27:50 +00:00
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class USERPREF_PT_interface(Panel):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_space_type = 'USER_PREFERENCES'
|
2011-09-15 13:20:18 +00:00
|
|
|
bl_label = "Interface"
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_region_type = 'WINDOW'
|
2010-08-26 01:05:37 +00:00
|
|
|
bl_options = {'HIDE_HEADER'}
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-09 01:37:09 +00:00
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
2009-10-31 19:31:45 +00:00
|
|
|
userpref = context.user_preferences
|
|
|
|
return (userpref.active_section == 'INTERFACE')
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
userpref = context.user_preferences
|
|
|
|
view = userpref.view
|
2009-12-17 01:21:55 +00:00
|
|
|
|
2009-12-15 14:22:34 +00:00
|
|
|
row = layout.row()
|
2009-12-17 01:21:55 +00:00
|
|
|
|
2009-12-15 14:22:34 +00:00
|
|
|
col = row.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Display:")
|
2010-08-17 13:14:41 +00:00
|
|
|
col.prop(view, "show_tooltips")
|
2010-11-22 05:36:49 +00:00
|
|
|
col.prop(view, "show_tooltips_python")
|
2011-09-21 15:18:38 +00:00
|
|
|
col.prop(view, "show_object_info", text="Object Info")
|
2010-08-17 13:14:41 +00:00
|
|
|
col.prop(view, "show_large_cursors")
|
2011-09-21 15:18:38 +00:00
|
|
|
col.prop(view, "show_view_name", text="View Name")
|
|
|
|
col.prop(view, "show_playback_fps", text="Playback FPS")
|
2010-08-17 13:14:41 +00:00
|
|
|
col.prop(view, "use_global_scene")
|
2009-12-08 19:08:35 +00:00
|
|
|
col.prop(view, "object_origin_size")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-12-08 19:08:35 +00:00
|
|
|
col.separator()
|
|
|
|
col.separator()
|
|
|
|
col.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
col.prop(view, "show_mini_axis", text="Display Mini Axis")
|
2009-12-08 19:08:35 +00:00
|
|
|
sub = col.column()
|
2010-07-23 09:33:58 +00:00
|
|
|
sub.active = view.show_mini_axis
|
2011-09-21 15:18:38 +00:00
|
|
|
sub.prop(view, "mini_axis_size", text="Size")
|
|
|
|
sub.prop(view, "mini_axis_brightness", text="Brightness")
|
2010-06-09 19:12:03 +00:00
|
|
|
|
2010-05-16 10:21:00 +00:00
|
|
|
col.separator()
|
2009-12-15 14:22:34 +00:00
|
|
|
row.separator()
|
|
|
|
row.separator()
|
2009-12-17 01:21:55 +00:00
|
|
|
|
2009-12-15 14:22:34 +00:00
|
|
|
col = row.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="View Manipulation:")
|
2010-08-17 13:14:41 +00:00
|
|
|
col.prop(view, "use_mouse_auto_depth")
|
|
|
|
col.prop(view, "use_zoom_to_mouse")
|
|
|
|
col.prop(view, "use_rotate_around_active")
|
|
|
|
col.prop(view, "use_global_pivot")
|
2011-05-23 02:53:30 +00:00
|
|
|
col.prop(view, "use_camera_lock_parent")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-12-08 19:08:35 +00:00
|
|
|
col.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-17 13:14:41 +00:00
|
|
|
col.prop(view, "use_auto_perspective")
|
2009-12-08 19:08:35 +00:00
|
|
|
col.prop(view, "smooth_view")
|
|
|
|
col.prop(view, "rotation_angle")
|
2010-01-31 14:46:28 +00:00
|
|
|
|
2010-01-30 04:43:36 +00:00
|
|
|
col.separator()
|
|
|
|
col.separator()
|
2010-01-31 14:46:28 +00:00
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="2D Viewports:")
|
|
|
|
col.prop(view, "view2d_grid_spacing_min", text="Minimum Grid Spacing")
|
2010-01-30 04:43:36 +00:00
|
|
|
col.prop(view, "timecode_style")
|
2010-01-31 14:46:28 +00:00
|
|
|
|
2009-12-15 14:22:34 +00:00
|
|
|
row.separator()
|
|
|
|
row.separator()
|
2009-12-17 01:21:55 +00:00
|
|
|
|
2009-12-15 14:22:34 +00:00
|
|
|
col = row.column()
|
2009-12-08 19:08:35 +00:00
|
|
|
#Toolbox doesn't exist yet
|
|
|
|
#col.label(text="Toolbox:")
|
2010-08-17 13:14:41 +00:00
|
|
|
#col.prop(view, "show_column_layout")
|
2009-12-08 19:08:35 +00:00
|
|
|
#col.label(text="Open Toolbox Delay:")
|
|
|
|
#col.prop(view, "open_left_mouse_delay", text="Hold LMB")
|
|
|
|
#col.prop(view, "open_right_mouse_delay", text="Hold RMB")
|
2010-08-17 13:14:41 +00:00
|
|
|
col.prop(view, "show_manipulator")
|
2009-12-08 19:08:35 +00:00
|
|
|
sub = col.column()
|
2010-08-17 13:14:41 +00:00
|
|
|
sub.active = view.show_manipulator
|
2011-09-21 15:18:38 +00:00
|
|
|
sub.prop(view, "manipulator_size", text="Size")
|
|
|
|
sub.prop(view, "manipulator_handle_size", text="Handle Size")
|
|
|
|
sub.prop(view, "manipulator_hotspot", text="Hotspot")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-12-08 19:08:35 +00:00
|
|
|
col.separator()
|
|
|
|
col.separator()
|
|
|
|
col.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Menus:")
|
2010-08-17 13:14:41 +00:00
|
|
|
col.prop(view, "use_mouse_over_open")
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Menu Open Delay:")
|
|
|
|
col.prop(view, "open_toplevel_delay", text="Top Level")
|
|
|
|
col.prop(view, "open_sublevel_delay", text="Sub Level")
|
2010-03-14 23:26:17 +00:00
|
|
|
|
2010-03-14 18:08:12 +00:00
|
|
|
col.separator()
|
2010-03-14 23:26:17 +00:00
|
|
|
|
2010-03-14 18:08:12 +00:00
|
|
|
col.prop(view, "show_splash")
|
2009-08-18 12:58:51 +00:00
|
|
|
|
2012-03-16 17:37:45 +00:00
|
|
|
if os.name == 'nt':
|
|
|
|
col.prop(view, "quit_dialog")
|
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class USERPREF_PT_edit(Panel):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_space_type = 'USER_PREFERENCES'
|
2011-09-15 13:20:18 +00:00
|
|
|
bl_label = "Edit"
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_region_type = 'WINDOW'
|
2010-08-26 01:05:37 +00:00
|
|
|
bl_options = {'HIDE_HEADER'}
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-09 01:37:09 +00:00
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
2009-10-31 19:31:45 +00:00
|
|
|
userpref = context.user_preferences
|
|
|
|
return (userpref.active_section == 'EDITING')
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
userpref = context.user_preferences
|
|
|
|
edit = userpref.edit
|
|
|
|
|
2009-12-15 14:22:34 +00:00
|
|
|
row = layout.row()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-12-15 14:22:34 +00:00
|
|
|
col = row.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Link Materials To:")
|
2010-01-09 15:49:27 +00:00
|
|
|
col.prop(edit, "material_link", text="")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-12-08 19:08:35 +00:00
|
|
|
col.separator()
|
|
|
|
col.separator()
|
|
|
|
col.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="New Objects:")
|
2010-08-17 13:14:41 +00:00
|
|
|
col.prop(edit, "use_enter_edit_mode")
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Align To:")
|
2010-01-09 15:49:27 +00:00
|
|
|
col.prop(edit, "object_align", text="")
|
2009-12-13 13:59:16 +00:00
|
|
|
|
2009-12-08 19:08:35 +00:00
|
|
|
col.separator()
|
|
|
|
col.separator()
|
|
|
|
col.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Undo:")
|
2010-08-17 13:14:41 +00:00
|
|
|
col.prop(edit, "use_global_undo")
|
2011-09-21 15:18:38 +00:00
|
|
|
col.prop(edit, "undo_steps", text="Steps")
|
|
|
|
col.prop(edit, "undo_memory_limit", text="Memory Limit")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-12-15 14:22:34 +00:00
|
|
|
row.separator()
|
|
|
|
row.separator()
|
|
|
|
|
|
|
|
col = row.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Grease Pencil:")
|
|
|
|
col.prop(edit, "grease_pencil_manhattan_distance", text="Manhattan Distance")
|
|
|
|
col.prop(edit, "grease_pencil_euclidean_distance", text="Euclidean Distance")
|
2012-02-08 04:37:37 +00:00
|
|
|
#~ col.prop(edit, "use_grease_pencil_simplify_stroke", text="Simplify Stroke")
|
2011-09-21 15:18:38 +00:00
|
|
|
col.prop(edit, "grease_pencil_eraser_radius", text="Eraser Radius")
|
|
|
|
col.prop(edit, "use_grease_pencil_smooth_stroke", text="Smooth Stroke")
|
2010-02-18 00:29:08 +00:00
|
|
|
col.separator()
|
|
|
|
col.separator()
|
|
|
|
col.separator()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Playback:")
|
2010-02-18 00:29:08 +00:00
|
|
|
col.prop(edit, "use_negative_frames")
|
2012-03-22 12:19:31 +00:00
|
|
|
col.separator()
|
|
|
|
col.separator()
|
|
|
|
col.separator()
|
|
|
|
col.label(text="Animation Editors:")
|
|
|
|
col.prop(edit, "fcurve_unselected_alpha", text="F-Curve Visibility")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-12-15 14:22:34 +00:00
|
|
|
row.separator()
|
|
|
|
row.separator()
|
|
|
|
|
|
|
|
col = row.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Keyframing:")
|
2009-12-08 19:08:35 +00:00
|
|
|
col.prop(edit, "use_visual_keying")
|
2011-09-21 15:18:38 +00:00
|
|
|
col.prop(edit, "use_keyframe_insert_needed", text="Only Insert Needed")
|
2009-12-08 19:08:35 +00:00
|
|
|
|
|
|
|
col.separator()
|
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
col.prop(edit, "use_auto_keying", text="Auto Keyframing:")
|
2009-12-08 19:08:35 +00:00
|
|
|
|
|
|
|
sub = col.column()
|
|
|
|
|
2012-02-08 04:37:37 +00:00
|
|
|
#~ sub.active = edit.use_keyframe_insert_auto # incorrect, time-line can enable
|
2011-09-21 15:18:38 +00:00
|
|
|
sub.prop(edit, "use_keyframe_insert_available", text="Only Insert Available")
|
2009-12-08 19:08:35 +00:00
|
|
|
|
2010-02-17 15:14:09 +00:00
|
|
|
col.separator()
|
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="New F-Curve Defaults:")
|
|
|
|
col.prop(edit, "keyframe_new_interpolation_type", text="Interpolation")
|
|
|
|
col.prop(edit, "keyframe_new_handle_type", text="Handles")
|
|
|
|
col.prop(edit, "use_insertkey_xyz_to_rgb", text="XYZ to RGB")
|
2010-02-17 15:14:09 +00:00
|
|
|
|
2009-12-08 19:08:35 +00:00
|
|
|
col.separator()
|
|
|
|
col.separator()
|
|
|
|
col.separator()
|
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Transform:")
|
2010-08-17 13:14:41 +00:00
|
|
|
col.prop(edit, "use_drag_immediately")
|
2009-12-08 19:08:35 +00:00
|
|
|
|
2009-12-15 14:22:34 +00:00
|
|
|
row.separator()
|
|
|
|
row.separator()
|
2009-12-08 19:08:35 +00:00
|
|
|
|
2009-12-15 14:22:34 +00:00
|
|
|
col = row.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.prop(edit, "sculpt_paint_overlay_color", text="Sculpt Overlay Color")
|
2010-07-14 14:11:03 +00:00
|
|
|
|
|
|
|
col.separator()
|
|
|
|
col.separator()
|
|
|
|
col.separator()
|
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Duplicate Data:")
|
|
|
|
col.prop(edit, "use_duplicate_mesh", text="Mesh")
|
|
|
|
col.prop(edit, "use_duplicate_surface", text="Surface")
|
|
|
|
col.prop(edit, "use_duplicate_curve", text="Curve")
|
|
|
|
col.prop(edit, "use_duplicate_text", text="Text")
|
|
|
|
col.prop(edit, "use_duplicate_metaball", text="Metaball")
|
|
|
|
col.prop(edit, "use_duplicate_armature", text="Armature")
|
|
|
|
col.prop(edit, "use_duplicate_lamp", text="Lamp")
|
|
|
|
col.prop(edit, "use_duplicate_material", text="Material")
|
|
|
|
col.prop(edit, "use_duplicate_texture", text="Texture")
|
|
|
|
#col.prop(edit, "use_duplicate_fcurve", text="F-Curve")
|
|
|
|
col.prop(edit, "use_duplicate_action", text="Action")
|
|
|
|
col.prop(edit, "use_duplicate_particle", text="Particle")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class USERPREF_PT_system(Panel):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_space_type = 'USER_PREFERENCES'
|
2011-09-15 13:20:18 +00:00
|
|
|
bl_label = "System"
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_region_type = 'WINDOW'
|
2010-08-26 01:05:37 +00:00
|
|
|
bl_options = {'HIDE_HEADER'}
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-09 01:37:09 +00:00
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
2009-10-31 19:31:45 +00:00
|
|
|
userpref = context.user_preferences
|
|
|
|
return (userpref.active_section == 'SYSTEM')
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
userpref = context.user_preferences
|
|
|
|
system = userpref.system
|
|
|
|
|
|
|
|
split = layout.split()
|
|
|
|
|
2010-01-09 15:49:27 +00:00
|
|
|
# 1. Column
|
2009-12-08 19:08:35 +00:00
|
|
|
column = split.column()
|
|
|
|
colsplit = column.split(percentage=0.85)
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-12-08 19:08:35 +00:00
|
|
|
col = colsplit.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="General:")
|
2009-12-08 19:08:35 +00:00
|
|
|
col.prop(system, "dpi")
|
|
|
|
col.prop(system, "frame_server_port")
|
2011-09-21 15:18:38 +00:00
|
|
|
col.prop(system, "scrollback", text="Console Scrollback")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-12-08 19:08:35 +00:00
|
|
|
col.separator()
|
|
|
|
col.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Sound:")
|
2009-12-08 19:08:35 +00:00
|
|
|
col.row().prop(system, "audio_device", expand=True)
|
|
|
|
sub = col.column()
|
|
|
|
sub.active = system.audio_device != 'NONE'
|
2010-08-17 13:14:41 +00:00
|
|
|
#sub.prop(system, "use_preview_images")
|
2011-09-21 15:18:38 +00:00
|
|
|
sub.prop(system, "audio_channels", text="Channels")
|
|
|
|
sub.prop(system, "audio_mixing_buffer", text="Mixing Buffer")
|
|
|
|
sub.prop(system, "audio_sample_rate", text="Sample Rate")
|
|
|
|
sub.prop(system, "audio_sample_format", text="Sample Format")
|
2009-12-13 13:59:16 +00:00
|
|
|
|
2009-12-08 19:08:35 +00:00
|
|
|
col.separator()
|
|
|
|
col.separator()
|
2010-01-31 14:46:28 +00:00
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Screencast:")
|
2010-01-21 10:28:19 +00:00
|
|
|
col.prop(system, "screencast_fps")
|
2010-01-31 14:46:28 +00:00
|
|
|
col.prop(system, "screencast_wait_time")
|
2012-01-09 16:58:01 +00:00
|
|
|
|
2010-01-21 10:28:19 +00:00
|
|
|
col.separator()
|
|
|
|
col.separator()
|
2012-01-09 16:58:01 +00:00
|
|
|
|
|
|
|
if hasattr(system, 'compute_device'):
|
|
|
|
col.label(text="Compute Device:")
|
|
|
|
col.row().prop(system, "compute_device_type", expand=True)
|
|
|
|
sub = col.row()
|
|
|
|
sub.active = system.compute_device_type != 'CPU'
|
|
|
|
sub.prop(system, "compute_device", text="")
|
2009-12-13 13:59:16 +00:00
|
|
|
|
2010-01-09 15:49:27 +00:00
|
|
|
# 2. Column
|
2009-12-08 19:08:35 +00:00
|
|
|
column = split.column()
|
|
|
|
colsplit = column.split(percentage=0.85)
|
|
|
|
|
|
|
|
col = colsplit.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="OpenGL:")
|
2010-08-17 13:14:41 +00:00
|
|
|
col.prop(system, "gl_clip_alpha", slider=True)
|
2009-12-08 19:08:35 +00:00
|
|
|
col.prop(system, "use_mipmaps")
|
2012-01-17 16:31:13 +00:00
|
|
|
col.prop(system, "use_16bit_textures")
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Anisotropic Filtering")
|
2011-06-24 03:30:50 +00:00
|
|
|
col.prop(system, "anisotropic_filter", text="")
|
2010-08-17 13:14:41 +00:00
|
|
|
col.prop(system, "use_vertex_buffer_objects")
|
2011-10-17 06:58:07 +00:00
|
|
|
# Anti-aliasing is disabled as it breaks border/lasso select
|
|
|
|
#~ col.prop(system, "use_antialiasing")
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Window Draw Method:")
|
2010-01-31 23:45:51 +00:00
|
|
|
col.prop(system, "window_draw_method", text="")
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Text Draw Options:")
|
2010-11-26 22:12:46 +00:00
|
|
|
col.prop(system, "use_text_antialiasing")
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Textures:")
|
|
|
|
col.prop(system, "gl_texture_limit", text="Limit Size")
|
|
|
|
col.prop(system, "texture_time_out", text="Time Out")
|
|
|
|
col.prop(system, "texture_collection_rate", text="Collection Rate")
|
2009-12-08 19:08:35 +00:00
|
|
|
|
|
|
|
col.separator()
|
|
|
|
col.separator()
|
|
|
|
col.separator()
|
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Sequencer:")
|
2009-12-08 19:08:35 +00:00
|
|
|
col.prop(system, "prefetch_frames")
|
|
|
|
col.prop(system, "memory_cache_limit")
|
2010-01-31 14:46:28 +00:00
|
|
|
|
2010-01-09 15:49:27 +00:00
|
|
|
# 3. Column
|
2009-12-15 14:22:34 +00:00
|
|
|
column = split.column()
|
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
column.label(text="Solid OpenGL lights:")
|
2009-12-15 14:22:34 +00:00
|
|
|
|
|
|
|
split = column.split(percentage=0.1)
|
|
|
|
split.label()
|
2011-09-21 15:18:38 +00:00
|
|
|
split.label(text="Colors:")
|
|
|
|
split.label(text="Direction:")
|
2010-01-31 14:46:28 +00:00
|
|
|
|
2010-01-09 15:49:27 +00:00
|
|
|
lamp = system.solid_lights[0]
|
|
|
|
opengl_lamp_buttons(column, lamp)
|
2010-01-31 14:46:28 +00:00
|
|
|
|
2010-01-09 15:49:27 +00:00
|
|
|
lamp = system.solid_lights[1]
|
|
|
|
opengl_lamp_buttons(column, lamp)
|
2010-01-31 14:46:28 +00:00
|
|
|
|
2010-01-09 15:49:27 +00:00
|
|
|
lamp = system.solid_lights[2]
|
|
|
|
opengl_lamp_buttons(column, lamp)
|
2009-12-17 01:21:55 +00:00
|
|
|
|
2009-12-15 14:22:34 +00:00
|
|
|
column.separator()
|
2010-01-31 14:46:28 +00:00
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
column.label(text="Color Picker Type:")
|
2010-01-09 15:49:27 +00:00
|
|
|
column.row().prop(system, "color_picker_type", text="")
|
2010-01-31 14:46:28 +00:00
|
|
|
|
2010-01-09 06:44:54 +00:00
|
|
|
column.separator()
|
2010-01-31 14:46:28 +00:00
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
column.prop(system, "use_weight_color_range", text="Custom Weight Paint Range")
|
2010-01-09 15:49:27 +00:00
|
|
|
sub = column.column()
|
2009-12-15 14:22:34 +00:00
|
|
|
sub.active = system.use_weight_color_range
|
|
|
|
sub.template_color_ramp(system, "weight_color_range", expand=True)
|
|
|
|
|
2011-09-15 13:20:18 +00:00
|
|
|
column.separator()
|
|
|
|
|
|
|
|
column.prop(system, "use_international_fonts")
|
|
|
|
if system.use_international_fonts:
|
2011-09-19 10:32:53 +00:00
|
|
|
column.prop(system, "language")
|
2011-09-15 13:20:18 +00:00
|
|
|
row = column.row()
|
2011-09-19 10:32:53 +00:00
|
|
|
row.label(text="Translate:")
|
2011-09-15 13:20:18 +00:00
|
|
|
row.prop(system, "use_translate_interface", text="Interface")
|
|
|
|
row.prop(system, "use_translate_tooltips", text="Tooltips")
|
|
|
|
|
2009-12-17 01:21:55 +00:00
|
|
|
|
2012-01-10 15:08:12 +00:00
|
|
|
class USERPREF_MT_interface_theme_presets(Menu):
|
|
|
|
bl_label = "Presets"
|
|
|
|
preset_subdir = "interface_theme"
|
|
|
|
preset_operator = "script.execute_preset"
|
|
|
|
preset_type = 'XML'
|
|
|
|
preset_xml_map = (("user_preferences.themes[0]", "Theme"), )
|
|
|
|
draw = Menu.draw_preset
|
|
|
|
|
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class USERPREF_PT_theme(Panel):
|
2009-11-02 17:18:17 +00:00
|
|
|
bl_space_type = 'USER_PREFERENCES'
|
2011-09-15 13:20:18 +00:00
|
|
|
bl_label = "Themes"
|
2009-11-02 17:18:17 +00:00
|
|
|
bl_region_type = 'WINDOW'
|
2010-08-26 01:05:37 +00:00
|
|
|
bl_options = {'HIDE_HEADER'}
|
2009-11-02 17:18:17 +00:00
|
|
|
|
2010-06-26 17:24:01 +00:00
|
|
|
@staticmethod
|
|
|
|
def _theme_generic(split, themedata):
|
|
|
|
|
2012-01-14 03:24:41 +00:00
|
|
|
col = split.column()
|
|
|
|
|
|
|
|
def theme_generic_recurse(data):
|
|
|
|
col.label(data.rna_type.name)
|
|
|
|
row = col.row()
|
|
|
|
subsplit = row.split(percentage=0.95)
|
2010-06-26 17:24:01 +00:00
|
|
|
|
2012-01-14 03:24:41 +00:00
|
|
|
padding1 = subsplit.split(percentage=0.15)
|
|
|
|
padding1.column()
|
2010-06-26 22:23:54 +00:00
|
|
|
|
2012-01-14 03:24:41 +00:00
|
|
|
subsplit = row.split(percentage=0.85)
|
2010-06-26 22:23:54 +00:00
|
|
|
|
2012-01-14 03:24:41 +00:00
|
|
|
padding2 = subsplit.split(percentage=0.15)
|
|
|
|
padding2.column()
|
2010-06-26 17:24:01 +00:00
|
|
|
|
2012-01-14 03:24:41 +00:00
|
|
|
colsub_pair = padding1.column(), padding2.column()
|
2010-06-26 22:23:54 +00:00
|
|
|
|
2012-01-14 03:24:41 +00:00
|
|
|
props_type = {}
|
2010-06-26 22:23:54 +00:00
|
|
|
|
2012-01-14 03:24:41 +00:00
|
|
|
for i, prop in enumerate(data.rna_type.properties):
|
|
|
|
if prop.identifier == "rna_type":
|
|
|
|
continue
|
2010-06-26 17:24:01 +00:00
|
|
|
|
2012-01-14 03:24:41 +00:00
|
|
|
props_type.setdefault((prop.type, prop.subtype), []).append(prop)
|
2010-06-26 17:24:01 +00:00
|
|
|
|
2012-01-14 03:24:41 +00:00
|
|
|
for props_type, props_ls in sorted(props_type.items()):
|
|
|
|
if props_type[0] == 'POINTER':
|
|
|
|
for i, prop in enumerate(props_ls):
|
|
|
|
theme_generic_recurse(getattr(data, prop.identifier))
|
|
|
|
else:
|
|
|
|
for i, prop in enumerate(props_ls):
|
|
|
|
colsub_pair[i % 2].row().prop(data, prop.identifier)
|
2010-06-26 17:24:01 +00:00
|
|
|
|
2012-01-14 03:24:41 +00:00
|
|
|
theme_generic_recurse(themedata)
|
2010-06-26 17:24:01 +00:00
|
|
|
|
2010-08-09 01:37:09 +00:00
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
2009-11-02 17:18:17 +00:00
|
|
|
userpref = context.user_preferences
|
|
|
|
return (userpref.active_section == 'THEMES')
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2009-11-03 07:23:02 +00:00
|
|
|
|
2009-11-02 17:18:17 +00:00
|
|
|
theme = context.user_preferences.themes[0]
|
2009-11-03 07:23:02 +00:00
|
|
|
|
2010-06-26 20:00:45 +00:00
|
|
|
split_themes = layout.split(percentage=0.2)
|
2012-01-10 16:30:16 +00:00
|
|
|
|
|
|
|
sub = split_themes.column()
|
|
|
|
|
|
|
|
sub.label(text="Presets:")
|
|
|
|
subrow = sub.row(align=True)
|
|
|
|
|
|
|
|
subrow.menu("USERPREF_MT_interface_theme_presets", text=USERPREF_MT_interface_theme_presets.bl_label)
|
|
|
|
subrow.operator("wm.interface_theme_preset_add", text="", icon='ZOOMIN')
|
|
|
|
subrow.operator("wm.interface_theme_preset_add", text="", icon='ZOOMOUT').remove_active = True
|
|
|
|
sub.separator()
|
|
|
|
|
|
|
|
sub.prop(theme, "theme_area", expand=True)
|
2010-07-05 22:22:22 +00:00
|
|
|
|
2010-06-26 17:06:55 +00:00
|
|
|
split = layout.split(percentage=0.4)
|
2010-07-05 22:22:22 +00:00
|
|
|
|
2010-06-26 17:06:55 +00:00
|
|
|
layout.separator()
|
|
|
|
layout.separator()
|
2010-07-05 22:22:22 +00:00
|
|
|
|
2010-06-26 20:00:45 +00:00
|
|
|
split = split_themes.split()
|
2010-01-31 14:46:28 +00:00
|
|
|
|
2010-01-09 18:17:40 +00:00
|
|
|
if theme.theme_area == 'USER_INTERFACE':
|
2009-11-03 07:23:02 +00:00
|
|
|
col = split.column()
|
|
|
|
|
2010-01-09 18:17:40 +00:00
|
|
|
ui = theme.user_interface.wcol_regular
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Regular:")
|
2010-01-09 18:17:40 +00:00
|
|
|
ui_items_general(col, ui)
|
2009-11-03 07:23:02 +00:00
|
|
|
|
2010-01-09 18:17:40 +00:00
|
|
|
ui = theme.user_interface.wcol_tool
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Tool:")
|
2010-01-09 18:17:40 +00:00
|
|
|
ui_items_general(col, ui)
|
2009-11-03 07:23:02 +00:00
|
|
|
|
2010-01-09 18:17:40 +00:00
|
|
|
ui = theme.user_interface.wcol_radio
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Radio Buttons:")
|
2010-01-09 18:17:40 +00:00
|
|
|
ui_items_general(col, ui)
|
2009-11-03 07:23:02 +00:00
|
|
|
|
2010-01-09 18:17:40 +00:00
|
|
|
ui = theme.user_interface.wcol_text
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Text:")
|
2010-01-09 18:17:40 +00:00
|
|
|
ui_items_general(col, ui)
|
2009-11-03 07:23:02 +00:00
|
|
|
|
2010-01-09 18:17:40 +00:00
|
|
|
ui = theme.user_interface.wcol_option
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Option:")
|
2010-01-09 18:17:40 +00:00
|
|
|
ui_items_general(col, ui)
|
2009-11-03 07:23:02 +00:00
|
|
|
|
2010-01-09 18:17:40 +00:00
|
|
|
ui = theme.user_interface.wcol_toggle
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Toggle:")
|
2010-01-09 18:17:40 +00:00
|
|
|
ui_items_general(col, ui)
|
2009-11-03 07:23:02 +00:00
|
|
|
|
2010-01-09 18:17:40 +00:00
|
|
|
ui = theme.user_interface.wcol_num
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Number Field:")
|
2010-01-09 18:17:40 +00:00
|
|
|
ui_items_general(col, ui)
|
2009-11-03 07:23:02 +00:00
|
|
|
|
2010-01-09 18:17:40 +00:00
|
|
|
ui = theme.user_interface.wcol_numslider
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Value Slider:")
|
2010-01-09 18:17:40 +00:00
|
|
|
ui_items_general(col, ui)
|
2009-11-03 07:23:02 +00:00
|
|
|
|
2010-01-09 18:17:40 +00:00
|
|
|
ui = theme.user_interface.wcol_box
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Box:")
|
2010-01-09 18:17:40 +00:00
|
|
|
ui_items_general(col, ui)
|
2009-11-03 07:23:02 +00:00
|
|
|
|
2010-01-09 18:17:40 +00:00
|
|
|
ui = theme.user_interface.wcol_menu
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Menu:")
|
2010-01-09 18:17:40 +00:00
|
|
|
ui_items_general(col, ui)
|
2009-11-03 07:23:02 +00:00
|
|
|
|
2010-01-09 18:17:40 +00:00
|
|
|
ui = theme.user_interface.wcol_pulldown
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Pulldown:")
|
2010-01-09 18:17:40 +00:00
|
|
|
ui_items_general(col, ui)
|
2009-11-03 07:23:02 +00:00
|
|
|
|
2010-01-09 18:17:40 +00:00
|
|
|
ui = theme.user_interface.wcol_menu_back
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Menu Back:")
|
2010-01-09 18:17:40 +00:00
|
|
|
ui_items_general(col, ui)
|
2009-11-03 07:23:02 +00:00
|
|
|
|
2012-03-19 22:29:16 +00:00
|
|
|
ui = theme.user_interface.wcol_tooltip
|
|
|
|
col.label(text="Tooltip:")
|
|
|
|
ui_items_general(col, ui)
|
|
|
|
|
2012-03-22 20:24:11 +00:00
|
|
|
ui = theme.user_interface.wcol_tooltip
|
|
|
|
col.label(text="Tooltip:")
|
|
|
|
ui_items_general(col, ui)
|
|
|
|
|
2010-01-09 18:17:40 +00:00
|
|
|
ui = theme.user_interface.wcol_menu_item
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Menu Item:")
|
2010-01-09 18:17:40 +00:00
|
|
|
ui_items_general(col, ui)
|
2009-11-03 07:23:02 +00:00
|
|
|
|
2010-01-09 18:17:40 +00:00
|
|
|
ui = theme.user_interface.wcol_scroll
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Scroll Bar:")
|
2010-01-09 18:17:40 +00:00
|
|
|
ui_items_general(col, ui)
|
2010-06-09 19:12:03 +00:00
|
|
|
|
2010-05-27 08:22:16 +00:00
|
|
|
ui = theme.user_interface.wcol_progress
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Progress Bar:")
|
2010-05-27 08:22:16 +00:00
|
|
|
ui_items_general(col, ui)
|
2009-11-03 07:23:02 +00:00
|
|
|
|
2010-01-09 18:17:40 +00:00
|
|
|
ui = theme.user_interface.wcol_list_item
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="List Item:")
|
2010-01-09 18:17:40 +00:00
|
|
|
ui_items_general(col, ui)
|
2009-11-03 07:23:02 +00:00
|
|
|
|
2009-11-02 17:18:17 +00:00
|
|
|
ui = theme.user_interface.wcol_state
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="State:")
|
2010-07-05 22:22:22 +00:00
|
|
|
|
2010-01-09 18:17:40 +00:00
|
|
|
row = col.row()
|
2010-06-26 17:06:55 +00:00
|
|
|
|
2010-07-05 22:22:22 +00:00
|
|
|
subsplit = row.split(percentage=0.95)
|
|
|
|
|
2010-06-26 17:06:55 +00:00
|
|
|
padding = subsplit.split(percentage=0.15)
|
|
|
|
colsub = padding.column()
|
|
|
|
colsub = padding.column()
|
|
|
|
colsub.row().prop(ui, "inner_anim")
|
|
|
|
colsub.row().prop(ui, "inner_anim_sel")
|
|
|
|
colsub.row().prop(ui, "inner_driven")
|
|
|
|
colsub.row().prop(ui, "inner_driven_sel")
|
2010-07-05 22:22:22 +00:00
|
|
|
|
|
|
|
subsplit = row.split(percentage=0.85)
|
|
|
|
|
2010-06-26 17:06:55 +00:00
|
|
|
padding = subsplit.split(percentage=0.15)
|
|
|
|
colsub = padding.column()
|
|
|
|
colsub = padding.column()
|
|
|
|
colsub.row().prop(ui, "inner_key")
|
|
|
|
colsub.row().prop(ui, "inner_key_sel")
|
|
|
|
colsub.row().prop(ui, "blend")
|
|
|
|
|
2011-11-19 20:57:53 +00:00
|
|
|
col.separator()
|
|
|
|
col.separator()
|
|
|
|
|
2009-11-02 17:18:17 +00:00
|
|
|
ui = theme.user_interface
|
2011-11-19 20:57:53 +00:00
|
|
|
col.label("Icons:")
|
|
|
|
|
|
|
|
row = col.row()
|
|
|
|
|
|
|
|
subsplit = row.split(percentage=0.95)
|
|
|
|
|
|
|
|
padding = subsplit.split(percentage=0.15)
|
|
|
|
colsub = padding.column()
|
|
|
|
colsub = padding.column()
|
|
|
|
colsub.row().prop(ui, "icon_file")
|
|
|
|
|
|
|
|
subsplit = row.split(percentage=0.85)
|
|
|
|
|
|
|
|
padding = subsplit.split(percentage=0.15)
|
|
|
|
colsub = padding.column()
|
|
|
|
colsub = padding.column()
|
|
|
|
colsub.row().prop(ui, "icon_alpha")
|
|
|
|
|
2010-01-09 18:17:40 +00:00
|
|
|
col.separator()
|
|
|
|
col.separator()
|
2010-07-05 22:22:22 +00:00
|
|
|
|
2011-11-19 20:57:53 +00:00
|
|
|
ui = theme.user_interface.panel
|
|
|
|
col.label("Panels:")
|
|
|
|
|
|
|
|
row = col.row()
|
|
|
|
|
|
|
|
subsplit = row.split(percentage=0.95)
|
|
|
|
|
|
|
|
padding = subsplit.split(percentage=0.15)
|
|
|
|
colsub = padding.column()
|
|
|
|
colsub = padding.column()
|
|
|
|
rowsub = colsub.row()
|
|
|
|
rowsub.prop(ui, "show_header")
|
|
|
|
rowsub.label()
|
|
|
|
|
|
|
|
subsplit = row.split(percentage=0.85)
|
|
|
|
|
|
|
|
padding = subsplit.split(percentage=0.15)
|
|
|
|
colsub = padding.column()
|
|
|
|
colsub = padding.column()
|
|
|
|
colsub.row().prop(ui, "header")
|
2009-11-03 07:23:02 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
|
|
|
layout.separator()
|
2011-03-28 11:01:24 +00:00
|
|
|
elif theme.theme_area == 'BONE_COLOR_SETS':
|
2011-02-14 03:43:28 +00:00
|
|
|
col = split.column()
|
2009-11-03 07:23:02 +00:00
|
|
|
|
2011-02-16 02:25:03 +00:00
|
|
|
for i, ui in enumerate(theme.bone_color_sets):
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Color Set" + " %d:" % (i + 1)) # i starts from 0
|
2011-02-16 02:25:03 +00:00
|
|
|
|
2011-02-14 03:43:28 +00:00
|
|
|
row = col.row()
|
2011-02-16 02:25:03 +00:00
|
|
|
|
2011-02-14 03:43:28 +00:00
|
|
|
subsplit = row.split(percentage=0.95)
|
|
|
|
|
|
|
|
padding = subsplit.split(percentage=0.15)
|
|
|
|
colsub = padding.column()
|
|
|
|
colsub = padding.column()
|
|
|
|
colsub.row().prop(ui, "normal")
|
|
|
|
colsub.row().prop(ui, "select")
|
|
|
|
colsub.row().prop(ui, "active")
|
2011-02-16 02:25:03 +00:00
|
|
|
|
2011-02-14 03:43:28 +00:00
|
|
|
subsplit = row.split(percentage=0.85)
|
|
|
|
|
|
|
|
padding = subsplit.split(percentage=0.15)
|
|
|
|
colsub = padding.column()
|
|
|
|
colsub = padding.column()
|
|
|
|
colsub.row().prop(ui, "show_colored_constraints")
|
2010-06-26 17:24:01 +00:00
|
|
|
else:
|
|
|
|
self._theme_generic(split, getattr(theme, theme.theme_area.lower()))
|
2009-11-02 17:18:17 +00:00
|
|
|
|
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class USERPREF_PT_file(Panel):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_space_type = 'USER_PREFERENCES'
|
2011-09-15 13:20:18 +00:00
|
|
|
bl_label = "Files"
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_region_type = 'WINDOW'
|
2010-08-26 01:05:37 +00:00
|
|
|
bl_options = {'HIDE_HEADER'}
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-09 01:37:09 +00:00
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
2009-10-31 19:31:45 +00:00
|
|
|
userpref = context.user_preferences
|
|
|
|
return (userpref.active_section == 'FILES')
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
userpref = context.user_preferences
|
|
|
|
paths = userpref.filepaths
|
2012-01-09 16:58:01 +00:00
|
|
|
system = userpref.system
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-12-08 19:08:35 +00:00
|
|
|
split = layout.split(percentage=0.7)
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="File Paths:")
|
2009-12-13 13:59:16 +00:00
|
|
|
|
2009-12-08 19:08:35 +00:00
|
|
|
colsplit = col.split(percentage=0.95)
|
|
|
|
col1 = colsplit.split(percentage=0.3)
|
2009-12-13 13:59:16 +00:00
|
|
|
|
2009-12-08 19:08:35 +00:00
|
|
|
sub = col1.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
sub.label(text="Fonts:")
|
|
|
|
sub.label(text="Textures:")
|
|
|
|
sub.label(text="Texture Plugins:")
|
|
|
|
sub.label(text="Sequence Plugins:")
|
|
|
|
sub.label(text="Render Output:")
|
|
|
|
sub.label(text="Scripts:")
|
|
|
|
sub.label(text="Sounds:")
|
|
|
|
sub.label(text="Temp:")
|
|
|
|
sub.label(text="Image Editor:")
|
|
|
|
sub.label(text="Animation Player:")
|
2009-12-13 13:59:16 +00:00
|
|
|
|
2009-12-08 19:08:35 +00:00
|
|
|
sub = col1.column()
|
2010-08-17 13:14:41 +00:00
|
|
|
sub.prop(paths, "font_directory", text="")
|
|
|
|
sub.prop(paths, "texture_directory", text="")
|
2009-12-08 19:08:35 +00:00
|
|
|
sub.prop(paths, "texture_plugin_directory", text="")
|
|
|
|
sub.prop(paths, "sequence_plugin_directory", text="")
|
|
|
|
sub.prop(paths, "render_output_directory", text="")
|
2010-08-17 13:14:41 +00:00
|
|
|
sub.prop(paths, "script_directory", text="")
|
|
|
|
sub.prop(paths, "sound_directory", text="")
|
2009-11-23 00:27:30 +00:00
|
|
|
sub.prop(paths, "temporary_directory", text="")
|
2010-03-07 09:23:57 +00:00
|
|
|
sub.prop(paths, "image_editor", text="")
|
2009-12-11 08:05:05 +00:00
|
|
|
subsplit = sub.split(percentage=0.3)
|
|
|
|
subsplit.prop(paths, "animation_player_preset", text="")
|
|
|
|
subsplit.prop(paths, "animation_player", text="")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2012-01-09 16:58:01 +00:00
|
|
|
col.separator()
|
|
|
|
col.separator()
|
|
|
|
|
|
|
|
colsplit = col.split(percentage=0.95)
|
|
|
|
sub = colsplit.column()
|
|
|
|
sub.label(text="Author:")
|
|
|
|
sub.prop(system, "author", text="")
|
|
|
|
|
2009-10-31 19:31:45 +00:00
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Save & Load:")
|
2009-12-08 19:08:35 +00:00
|
|
|
col.prop(paths, "use_relative_paths")
|
2010-08-17 13:14:41 +00:00
|
|
|
col.prop(paths, "use_file_compression")
|
|
|
|
col.prop(paths, "use_load_ui")
|
|
|
|
col.prop(paths, "use_filter_files")
|
|
|
|
col.prop(paths, "show_hidden_files_datablocks")
|
2010-11-06 18:54:15 +00:00
|
|
|
col.prop(paths, "hide_recent_locations")
|
|
|
|
col.prop(paths, "show_thumbnails")
|
2009-12-13 13:59:16 +00:00
|
|
|
|
2009-12-08 19:08:35 +00:00
|
|
|
col.separator()
|
|
|
|
col.separator()
|
|
|
|
|
|
|
|
col.prop(paths, "save_version")
|
|
|
|
col.prop(paths, "recent_files")
|
2010-08-17 13:14:41 +00:00
|
|
|
col.prop(paths, "use_save_preview_images")
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Auto Save:")
|
2010-08-17 13:14:41 +00:00
|
|
|
col.prop(paths, "use_auto_save_temporary_files")
|
2009-12-08 19:08:35 +00:00
|
|
|
sub = col.column()
|
2010-08-17 13:14:41 +00:00
|
|
|
sub.active = paths.use_auto_save_temporary_files
|
2011-09-21 15:18:38 +00:00
|
|
|
sub.prop(paths, "auto_save_time", text="Timer (mins)")
|
2009-08-18 12:58:51 +00:00
|
|
|
|
2012-01-09 16:58:01 +00:00
|
|
|
col.separator()
|
|
|
|
|
|
|
|
col.label(text="Scripts:")
|
|
|
|
col.prop(system, "use_scripts_auto_execute")
|
|
|
|
col.prop(system, "use_tabs_as_spaces")
|
|
|
|
|
|
|
|
|
2012-04-04 14:39:52 +00:00
|
|
|
from bl_ui.space_userpref_keymap import InputKeyMapPanel
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2010-04-17 19:05:53 +00:00
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class USERPREF_MT_ndof_settings(Menu):
|
2012-02-08 04:37:37 +00:00
|
|
|
# accessed from the window key-bindings in C (only)
|
2011-09-15 13:20:18 +00:00
|
|
|
bl_label = "3D Mouse Settings"
|
2011-08-05 14:53:13 +00:00
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
input_prefs = context.user_preferences.inputs
|
|
|
|
|
|
|
|
layout.separator()
|
|
|
|
layout.prop(input_prefs, "ndof_sensitivity")
|
|
|
|
|
|
|
|
if context.space_data.type == 'VIEW_3D':
|
|
|
|
layout.separator()
|
|
|
|
layout.prop(input_prefs, "ndof_show_guide")
|
|
|
|
|
|
|
|
layout.separator()
|
2011-10-23 17:52:20 +00:00
|
|
|
layout.label(text="Orbit options")
|
2011-09-07 10:33:46 +00:00
|
|
|
if input_prefs.view_rotate_method == 'TRACKBALL':
|
|
|
|
layout.prop(input_prefs, "ndof_roll_invert_axis")
|
2011-11-14 14:02:19 +00:00
|
|
|
layout.prop(input_prefs, "ndof_tilt_invert_axis")
|
|
|
|
layout.prop(input_prefs, "ndof_rotate_invert_axis")
|
|
|
|
layout.prop(input_prefs, "ndof_zoom_invert")
|
2011-09-07 10:33:46 +00:00
|
|
|
|
|
|
|
layout.separator()
|
2011-10-23 17:52:20 +00:00
|
|
|
layout.label(text="Pan options")
|
2011-09-07 10:33:46 +00:00
|
|
|
layout.prop(input_prefs, "ndof_panx_invert_axis")
|
|
|
|
layout.prop(input_prefs, "ndof_pany_invert_axis")
|
|
|
|
layout.prop(input_prefs, "ndof_panz_invert_axis")
|
2011-08-05 14:53:13 +00:00
|
|
|
|
2011-11-14 14:02:19 +00:00
|
|
|
layout.label(text="Zoom options")
|
|
|
|
layout.prop(input_prefs, "ndof_zoom_updown")
|
|
|
|
|
2011-08-05 14:53:13 +00:00
|
|
|
layout.separator()
|
2011-10-23 17:52:20 +00:00
|
|
|
layout.label(text="Fly options")
|
2011-08-05 14:53:13 +00:00
|
|
|
layout.prop(input_prefs, "ndof_fly_helicopter", icon='NDOF_FLY')
|
|
|
|
layout.prop(input_prefs, "ndof_lock_horizon", icon='NDOF_DOM')
|
|
|
|
|
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class USERPREF_PT_input(Panel, InputKeyMapPanel):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_space_type = 'USER_PREFERENCES'
|
2011-09-15 13:20:18 +00:00
|
|
|
bl_label = "Input"
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-09 01:37:09 +00:00
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
2009-10-31 19:31:45 +00:00
|
|
|
userpref = context.user_preferences
|
|
|
|
return (userpref.active_section == 'INPUT')
|
2009-12-17 01:21:55 +00:00
|
|
|
|
2009-12-16 10:13:26 +00:00
|
|
|
def draw_input_prefs(self, inputs, layout):
|
|
|
|
# General settings
|
|
|
|
row = layout.row()
|
2009-10-31 19:31:45 +00:00
|
|
|
col = row.column()
|
|
|
|
|
|
|
|
sub = col.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
sub.label(text="Presets:")
|
* Interaction Presets
This adds a new presets menu in the splash screen and the Input section of
User Preferences to choose a preset interaction style, consisting of key configurations
and also other user preferences such as select mouse button, view rotation style, etc.
Currently, just 'Blender' and 'Maya' presets are included, hopefully we can have more
presets contributed (and maintained!) by the community.
It's best to keep these presets minimal to avoid too many key conflicts. In the Maya one
I changed the view manipulation key/mouse combos and also the transform
manipulator keys, not much more than that.
To save an interaction preset, open the user preferences Input section, and press the
[ + ] button next to the presets menu. It will save out a .py file containing any edited key
maps and navigation preferences to the presets/interaction folder in your scripts folder.
---
Part of this commit changes the way that key maps are exported/displayed in
preferences - now partial key configs are allowed. Previously it would export/import the
entire key configuration, regardless of whether individual key maps were edited or not
(which would make them more susceptible to conflicts in unexpected areas).
(note, in blender terminology, a key map is a category of key items, such as
'Object Mode' or 'View 2d'.)
Now, the export and the UI display work in a similar way to how key maps are
processed internally - Locally edited key maps (after pressing the 'Edit' button) are
processed first, falling back to other key maps in the current key config, and then falling
back to the default key config. So it's possible for a key config to only include a few
key maps, and the rest just gets pulled from the default key config. The preferences
UI display works like this too behind the scenes in deciding what to show users,
however using it is just like it was before, the complexity is hidden.
2010-04-14 06:27:50 +00:00
|
|
|
subrow = sub.row(align=True)
|
2010-09-14 16:45:24 +00:00
|
|
|
|
* Interaction Presets
This adds a new presets menu in the splash screen and the Input section of
User Preferences to choose a preset interaction style, consisting of key configurations
and also other user preferences such as select mouse button, view rotation style, etc.
Currently, just 'Blender' and 'Maya' presets are included, hopefully we can have more
presets contributed (and maintained!) by the community.
It's best to keep these presets minimal to avoid too many key conflicts. In the Maya one
I changed the view manipulation key/mouse combos and also the transform
manipulator keys, not much more than that.
To save an interaction preset, open the user preferences Input section, and press the
[ + ] button next to the presets menu. It will save out a .py file containing any edited key
maps and navigation preferences to the presets/interaction folder in your scripts folder.
---
Part of this commit changes the way that key maps are exported/displayed in
preferences - now partial key configs are allowed. Previously it would export/import the
entire key configuration, regardless of whether individual key maps were edited or not
(which would make them more susceptible to conflicts in unexpected areas).
(note, in blender terminology, a key map is a category of key items, such as
'Object Mode' or 'View 2d'.)
Now, the export and the UI display work in a similar way to how key maps are
processed internally - Locally edited key maps (after pressing the 'Edit' button) are
processed first, falling back to other key maps in the current key config, and then falling
back to the default key config. So it's possible for a key config to only include a few
key maps, and the rest just gets pulled from the default key config. The preferences
UI display works like this too behind the scenes in deciding what to show users,
however using it is just like it was before, the complexity is hidden.
2010-04-14 06:27:50 +00:00
|
|
|
subrow.menu("USERPREF_MT_interaction_presets", text=bpy.types.USERPREF_MT_interaction_presets.bl_label)
|
2010-06-26 20:00:45 +00:00
|
|
|
subrow.operator("wm.interaction_preset_add", text="", icon='ZOOMIN')
|
2010-09-14 04:58:25 +00:00
|
|
|
subrow.operator("wm.interaction_preset_add", text="", icon='ZOOMOUT').remove_active = True
|
* Interaction Presets
This adds a new presets menu in the splash screen and the Input section of
User Preferences to choose a preset interaction style, consisting of key configurations
and also other user preferences such as select mouse button, view rotation style, etc.
Currently, just 'Blender' and 'Maya' presets are included, hopefully we can have more
presets contributed (and maintained!) by the community.
It's best to keep these presets minimal to avoid too many key conflicts. In the Maya one
I changed the view manipulation key/mouse combos and also the transform
manipulator keys, not much more than that.
To save an interaction preset, open the user preferences Input section, and press the
[ + ] button next to the presets menu. It will save out a .py file containing any edited key
maps and navigation preferences to the presets/interaction folder in your scripts folder.
---
Part of this commit changes the way that key maps are exported/displayed in
preferences - now partial key configs are allowed. Previously it would export/import the
entire key configuration, regardless of whether individual key maps were edited or not
(which would make them more susceptible to conflicts in unexpected areas).
(note, in blender terminology, a key map is a category of key items, such as
'Object Mode' or 'View 2d'.)
Now, the export and the UI display work in a similar way to how key maps are
processed internally - Locally edited key maps (after pressing the 'Edit' button) are
processed first, falling back to other key maps in the current key config, and then falling
back to the default key config. So it's possible for a key config to only include a few
key maps, and the rest just gets pulled from the default key config. The preferences
UI display works like this too behind the scenes in deciding what to show users,
however using it is just like it was before, the complexity is hidden.
2010-04-14 06:27:50 +00:00
|
|
|
sub.separator()
|
2010-04-17 19:05:53 +00:00
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
sub.label(text="Mouse:")
|
2009-10-31 19:31:45 +00:00
|
|
|
sub1 = sub.column()
|
2010-07-23 09:33:58 +00:00
|
|
|
sub1.active = (inputs.select_mouse == 'RIGHT')
|
2010-08-17 13:14:41 +00:00
|
|
|
sub1.prop(inputs, "use_mouse_emulate_3_button")
|
|
|
|
sub.prop(inputs, "use_mouse_continuous")
|
2011-01-03 17:01:08 +00:00
|
|
|
sub.prop(inputs, "drag_threshold")
|
2012-02-20 15:29:02 +00:00
|
|
|
sub.prop(inputs, "tweak_threshold")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
sub.label(text="Select With:")
|
2009-11-23 00:27:30 +00:00
|
|
|
sub.row().prop(inputs, "select_mouse", expand=True)
|
2009-12-17 01:21:55 +00:00
|
|
|
|
2009-12-15 14:22:34 +00:00
|
|
|
sub = col.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
sub.label(text="Double Click:")
|
|
|
|
sub.prop(inputs, "mouse_double_click_time", text="Speed")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
sub.separator()
|
2009-11-22 16:33:47 +00:00
|
|
|
|
2010-08-17 13:14:41 +00:00
|
|
|
sub.prop(inputs, "use_emulate_numpad")
|
2009-11-22 16:33:47 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
sub.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
sub.label(text="Orbit Style:")
|
2010-08-17 13:14:41 +00:00
|
|
|
sub.row().prop(inputs, "view_rotate_method", expand=True)
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
sub.label(text="Zoom Style:")
|
2010-08-17 13:14:41 +00:00
|
|
|
sub.row().prop(inputs, "view_zoom_method", text="")
|
2011-04-22 14:47:35 +00:00
|
|
|
if inputs.view_zoom_method in {'DOLLY', 'CONTINUE'}:
|
2010-08-17 13:14:41 +00:00
|
|
|
sub.row().prop(inputs, "view_zoom_axis", expand=True)
|
2011-04-22 14:47:35 +00:00
|
|
|
sub.prop(inputs, "invert_mouse_zoom")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-17 13:14:41 +00:00
|
|
|
#sub.prop(inputs, "use_mouse_mmb_paste")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
#col.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-07-20 12:37:42 +00:00
|
|
|
sub = col.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
sub.label(text="Mouse Wheel:")
|
|
|
|
sub.prop(inputs, "invert_zoom_wheel", text="Invert Wheel Zoom Direction")
|
2009-11-23 00:27:30 +00:00
|
|
|
#sub.prop(view, "wheel_scroll_lines", text="Scroll Lines")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
col.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
sub = col.column()
|
2009-11-23 00:27:30 +00:00
|
|
|
sub.label(text="NDOF Device:")
|
2011-07-21 22:26:58 +00:00
|
|
|
sub.prop(inputs, "ndof_sensitivity", text="NDOF Sensitivity")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
row.separator()
|
2009-12-17 01:21:55 +00:00
|
|
|
|
2009-12-16 10:13:26 +00:00
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2010-01-31 14:46:28 +00:00
|
|
|
|
2010-01-29 02:01:02 +00:00
|
|
|
#import time
|
2010-01-31 14:46:28 +00:00
|
|
|
|
2010-01-29 02:01:02 +00:00
|
|
|
#start = time.time()
|
2009-12-16 10:13:26 +00:00
|
|
|
|
|
|
|
userpref = context.user_preferences
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-12-16 10:13:26 +00:00
|
|
|
inputs = userpref.inputs
|
|
|
|
|
|
|
|
split = layout.split(percentage=0.25)
|
2009-12-17 01:21:55 +00:00
|
|
|
|
2009-12-16 10:13:26 +00:00
|
|
|
# Input settings
|
|
|
|
self.draw_input_prefs(inputs, split)
|
2009-12-17 01:21:55 +00:00
|
|
|
|
2009-10-31 19:31:45 +00:00
|
|
|
# Keymap Settings
|
* Interaction Presets
This adds a new presets menu in the splash screen and the Input section of
User Preferences to choose a preset interaction style, consisting of key configurations
and also other user preferences such as select mouse button, view rotation style, etc.
Currently, just 'Blender' and 'Maya' presets are included, hopefully we can have more
presets contributed (and maintained!) by the community.
It's best to keep these presets minimal to avoid too many key conflicts. In the Maya one
I changed the view manipulation key/mouse combos and also the transform
manipulator keys, not much more than that.
To save an interaction preset, open the user preferences Input section, and press the
[ + ] button next to the presets menu. It will save out a .py file containing any edited key
maps and navigation preferences to the presets/interaction folder in your scripts folder.
---
Part of this commit changes the way that key maps are exported/displayed in
preferences - now partial key configs are allowed. Previously it would export/import the
entire key configuration, regardless of whether individual key maps were edited or not
(which would make them more susceptible to conflicts in unexpected areas).
(note, in blender terminology, a key map is a category of key items, such as
'Object Mode' or 'View 2d'.)
Now, the export and the UI display work in a similar way to how key maps are
processed internally - Locally edited key maps (after pressing the 'Edit' button) are
processed first, falling back to other key maps in the current key config, and then falling
back to the default key config. So it's possible for a key config to only include a few
key maps, and the rest just gets pulled from the default key config. The preferences
UI display works like this too behind the scenes in deciding what to show users,
however using it is just like it was before, the complexity is hidden.
2010-04-14 06:27:50 +00:00
|
|
|
self.draw_keymaps(context, split)
|
2010-01-31 14:46:28 +00:00
|
|
|
|
2010-01-29 02:01:02 +00:00
|
|
|
#print("runtime", time.time() - start)
|
Key Configuration
Keymaps are now saveable and configurable from the user preferences, note
that editing one item in a keymap means the whole keymap is now defined by
the user and will not be updated by Blender, an option for syncing might be
added later. The outliner interface is still there, but I will probably
remove it.
There's actually 3 levels now:
* Default builtin key configuration.
* Key configuration loaded from .py file, for configs like Blender 2.4x
or other 3D applications.
* Keymaps edited by the user and saved in .B.blend. These can be saved
to .py files as well to make creating distributable configurations
easier.
Also, user preferences sections were reorganized a bit, now there is:
Interface, Editing, Input, Files and System.
Implementation notes:
* wmKeyConfig was added which represents a key configuration containing
keymaps.
* wmKeymapItem was renamed to wmKeyMapItem for consistency with wmKeyMap.
* Modal maps are not wrapped yet.
* User preferences DNA file reading did not support newdataadr() yet,
added this now for reading keymaps.
* Key configuration related settings are now RNA wrapped.
* is_property_set and is_property_hidden python methods were added.
2009-10-08 18:40:03 +00:00
|
|
|
|
2011-01-01 07:20:34 +00:00
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class USERPREF_MT_addons_dev_guides(Menu):
|
2011-09-15 13:20:18 +00:00
|
|
|
bl_label = "Development Guides"
|
2010-11-28 18:22:23 +00:00
|
|
|
|
2012-02-08 04:37:37 +00:00
|
|
|
# menu to open web-pages with addons development guides
|
2010-11-28 18:22:23 +00:00
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2011-09-21 15:18:38 +00:00
|
|
|
layout.operator("wm.url_open", text="API Concepts", icon='URL').url = "http://wiki.blender.org/index.php/Dev:2.5/Py/API/Intro"
|
|
|
|
layout.operator("wm.url_open", text="Addon Guidelines", icon='URL').url = "http://wiki.blender.org/index.php/Dev:2.5/Py/Scripts/Guidelines/Addons"
|
|
|
|
layout.operator("wm.url_open", text="How to share your addon", icon='URL').url = "http://wiki.blender.org/index.php/Dev:Py/Sharing"
|
2010-11-28 18:22:23 +00:00
|
|
|
|
Key Configuration
Keymaps are now saveable and configurable from the user preferences, note
that editing one item in a keymap means the whole keymap is now defined by
the user and will not be updated by Blender, an option for syncing might be
added later. The outliner interface is still there, but I will probably
remove it.
There's actually 3 levels now:
* Default builtin key configuration.
* Key configuration loaded from .py file, for configs like Blender 2.4x
or other 3D applications.
* Keymaps edited by the user and saved in .B.blend. These can be saved
to .py files as well to make creating distributable configurations
easier.
Also, user preferences sections were reorganized a bit, now there is:
Interface, Editing, Input, Files and System.
Implementation notes:
* wmKeyConfig was added which represents a key configuration containing
keymaps.
* wmKeymapItem was renamed to wmKeyMapItem for consistency with wmKeyMap.
* Modal maps are not wrapped yet.
* User preferences DNA file reading did not support newdataadr() yet,
added this now for reading keymaps.
* Key configuration related settings are now RNA wrapped.
* is_property_set and is_property_hidden python methods were added.
2009-10-08 18:40:03 +00:00
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class USERPREF_PT_addons(Panel):
|
2010-02-14 23:33:18 +00:00
|
|
|
bl_space_type = 'USER_PREFERENCES'
|
2011-09-15 13:20:18 +00:00
|
|
|
bl_label = "Addons"
|
2010-02-14 23:33:18 +00:00
|
|
|
bl_region_type = 'WINDOW'
|
2010-08-26 01:05:37 +00:00
|
|
|
bl_options = {'HIDE_HEADER'}
|
2010-09-07 15:17:42 +00:00
|
|
|
|
2011-11-17 20:11:20 +00:00
|
|
|
_support_icon_mapping = {
|
|
|
|
'OFFICIAL': 'FILE_BLEND',
|
|
|
|
'COMMUNITY': 'POSE_DATA',
|
|
|
|
'TESTING': 'MOD_EXPLODE',
|
|
|
|
}
|
|
|
|
|
2010-08-09 01:37:09 +00:00
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
2010-02-14 23:33:18 +00:00
|
|
|
userpref = context.user_preferences
|
2010-02-26 14:28:29 +00:00
|
|
|
return (userpref.active_section == 'ADDONS')
|
2010-02-14 23:33:18 +00:00
|
|
|
|
2011-06-29 15:56:22 +00:00
|
|
|
@staticmethod
|
|
|
|
def is_user_addon(mod, user_addon_paths):
|
|
|
|
if not user_addon_paths:
|
|
|
|
user_script_path = bpy.utils.user_script_path()
|
|
|
|
if user_script_path is not None:
|
2011-08-02 10:21:25 +00:00
|
|
|
user_addon_paths.append(os.path.join(user_script_path, "addons"))
|
2011-06-29 15:56:22 +00:00
|
|
|
user_addon_paths.append(os.path.join(bpy.utils.resource_path('USER'), "scripts", "addons"))
|
2011-07-01 12:33:34 +00:00
|
|
|
|
2011-06-29 15:56:22 +00:00
|
|
|
for path in user_addon_paths:
|
|
|
|
if bpy.path.is_subdir(mod.__file__, path):
|
|
|
|
return True
|
|
|
|
return False
|
|
|
|
|
2011-07-18 05:41:46 +00:00
|
|
|
@staticmethod
|
|
|
|
def draw_error(layout, message):
|
|
|
|
lines = message.split("\n")
|
|
|
|
box = layout.box()
|
|
|
|
rowsub = box.row()
|
|
|
|
rowsub.label(lines[0])
|
|
|
|
rowsub.label(icon='ERROR')
|
|
|
|
for l in lines[1:]:
|
|
|
|
box.label(l)
|
|
|
|
|
2010-02-14 23:33:18 +00:00
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
userpref = context.user_preferences
|
2010-02-26 14:28:29 +00:00
|
|
|
used_ext = {ext.module for ext in userpref.addons}
|
2010-03-14 23:26:17 +00:00
|
|
|
|
2010-03-13 00:14:36 +00:00
|
|
|
# collect the categories that can be filtered on
|
2011-09-23 13:47:29 +00:00
|
|
|
addons = [(mod, addon_utils.module_bl_info(mod)) for mod in addon_utils.modules(addon_utils.addons_fake_modules)]
|
2010-03-14 20:07:15 +00:00
|
|
|
|
2010-06-27 19:04:44 +00:00
|
|
|
split = layout.split(percentage=0.2)
|
|
|
|
col = split.column()
|
2010-09-09 14:22:03 +00:00
|
|
|
col.prop(context.window_manager, "addon_search", text="", icon='VIEWZOOM')
|
2011-01-01 07:20:34 +00:00
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Supported Level")
|
2011-01-14 16:49:43 +00:00
|
|
|
col.prop(context.window_manager, "addon_support", expand=True)
|
2010-06-27 19:04:44 +00:00
|
|
|
|
2011-11-17 20:11:20 +00:00
|
|
|
col.label(text="Categories")
|
|
|
|
col.prop(context.window_manager, "addon_filter", expand=True)
|
|
|
|
|
2010-06-27 19:04:44 +00:00
|
|
|
col = split.column()
|
2010-02-14 23:33:18 +00:00
|
|
|
|
2011-07-18 05:41:46 +00:00
|
|
|
# set in addon_utils.modules(...)
|
|
|
|
if addon_utils.error_duplicates:
|
|
|
|
self.draw_error(col,
|
|
|
|
"Multiple addons using the same name found!\n"
|
|
|
|
"likely a problem with the script search path.\n"
|
|
|
|
"(see console for details)",
|
|
|
|
)
|
|
|
|
|
2011-08-07 04:55:58 +00:00
|
|
|
if addon_utils.error_encoding:
|
|
|
|
self.draw_error(col,
|
|
|
|
"One or more addons do not have UTF-8 encoding\n"
|
|
|
|
"(see console for details)",
|
|
|
|
)
|
|
|
|
|
2010-09-09 14:22:03 +00:00
|
|
|
filter = context.window_manager.addon_filter
|
|
|
|
search = context.window_manager.addon_search.lower()
|
2011-01-14 16:49:43 +00:00
|
|
|
support = context.window_manager.addon_support
|
2010-03-14 20:07:15 +00:00
|
|
|
|
2011-06-29 15:56:22 +00:00
|
|
|
# initialized on demand
|
|
|
|
user_addon_paths = []
|
|
|
|
|
2010-03-14 23:19:44 +00:00
|
|
|
for mod, info in addons:
|
2010-03-14 20:07:15 +00:00
|
|
|
module_name = mod.__name__
|
2010-03-14 23:19:44 +00:00
|
|
|
|
2010-04-21 16:50:51 +00:00
|
|
|
is_enabled = module_name in used_ext
|
|
|
|
|
2011-01-14 16:49:43 +00:00
|
|
|
if info["support"] not in support:
|
|
|
|
continue
|
|
|
|
|
2011-10-23 17:52:20 +00:00
|
|
|
# check if addon should be visible with current filters
|
2011-11-08 01:32:34 +00:00
|
|
|
if ((filter == "All") or
|
|
|
|
(filter == info["category"]) or
|
|
|
|
(filter == "Enabled" and is_enabled) or
|
|
|
|
(filter == "Disabled" and not is_enabled)):
|
2010-03-14 20:07:15 +00:00
|
|
|
|
2010-04-21 16:50:51 +00:00
|
|
|
if search and search not in info["name"].lower():
|
|
|
|
if info["author"]:
|
|
|
|
if search not in info["author"].lower():
|
|
|
|
continue
|
|
|
|
else:
|
2010-03-13 00:14:36 +00:00
|
|
|
continue
|
2010-04-21 16:50:51 +00:00
|
|
|
|
|
|
|
# Addon UI Code
|
2010-06-27 19:04:44 +00:00
|
|
|
box = col.column().box()
|
|
|
|
colsub = box.column()
|
|
|
|
row = colsub.row()
|
2010-04-21 16:50:51 +00:00
|
|
|
|
2010-08-17 17:03:52 +00:00
|
|
|
row.operator("wm.addon_expand", icon='TRIA_DOWN' if info["show_expanded"] else 'TRIA_RIGHT', emboss=False).module = module_name
|
2010-06-17 02:38:49 +00:00
|
|
|
|
2010-06-26 20:00:45 +00:00
|
|
|
rowsub = row.row()
|
|
|
|
rowsub.active = is_enabled
|
2010-08-31 02:41:33 +00:00
|
|
|
rowsub.label(text='%s: %s' % (info['category'], info["name"]))
|
2010-09-07 15:17:42 +00:00
|
|
|
if info["warning"]:
|
|
|
|
rowsub.label(icon='ERROR')
|
2010-06-17 02:38:49 +00:00
|
|
|
|
2011-01-14 16:49:43 +00:00
|
|
|
# icon showing support level.
|
2011-11-17 20:11:20 +00:00
|
|
|
rowsub.label(icon=self._support_icon_mapping.get(info["support"], 'QUESTION'))
|
2011-01-14 16:49:43 +00:00
|
|
|
|
2010-06-26 20:00:45 +00:00
|
|
|
if is_enabled:
|
|
|
|
row.operator("wm.addon_disable", icon='CHECKBOX_HLT', text="", emboss=False).module = module_name
|
|
|
|
else:
|
|
|
|
row.operator("wm.addon_enable", icon='CHECKBOX_DEHLT', text="", emboss=False).module = module_name
|
2010-04-21 16:50:51 +00:00
|
|
|
|
2012-02-08 04:37:37 +00:00
|
|
|
# Expanded UI (only if additional info is available)
|
2010-08-17 17:03:52 +00:00
|
|
|
if info["show_expanded"]:
|
2010-06-17 02:38:49 +00:00
|
|
|
if info["description"]:
|
2010-06-27 19:04:44 +00:00
|
|
|
split = colsub.row().split(percentage=0.15)
|
2011-09-21 15:18:38 +00:00
|
|
|
split.label(text="Description:")
|
2010-06-17 02:38:49 +00:00
|
|
|
split.label(text=info["description"])
|
|
|
|
if info["location"]:
|
2010-06-27 19:04:44 +00:00
|
|
|
split = colsub.row().split(percentage=0.15)
|
2011-09-21 15:18:38 +00:00
|
|
|
split.label(text="Location:")
|
2010-06-17 02:38:49 +00:00
|
|
|
split.label(text=info["location"])
|
2010-04-21 16:50:51 +00:00
|
|
|
if info["author"]:
|
2010-06-27 19:04:44 +00:00
|
|
|
split = colsub.row().split(percentage=0.15)
|
2011-09-21 15:18:38 +00:00
|
|
|
split.label(text="Author:")
|
2010-04-21 16:50:51 +00:00
|
|
|
split.label(text=info["author"])
|
|
|
|
if info["version"]:
|
2010-06-27 19:04:44 +00:00
|
|
|
split = colsub.row().split(percentage=0.15)
|
2011-09-21 15:18:38 +00:00
|
|
|
split.label(text="Version:")
|
2010-09-19 07:07:14 +00:00
|
|
|
split.label(text='.'.join(str(x) for x in info["version"]))
|
2010-06-17 02:38:49 +00:00
|
|
|
if info["warning"]:
|
2010-06-27 19:04:44 +00:00
|
|
|
split = colsub.row().split(percentage=0.15)
|
2011-09-21 15:18:38 +00:00
|
|
|
split.label(text="Warning:")
|
2010-07-05 22:22:22 +00:00
|
|
|
split.label(text=' ' + info["warning"], icon='ERROR')
|
2011-06-29 15:56:22 +00:00
|
|
|
|
2011-07-11 05:50:49 +00:00
|
|
|
user_addon = USERPREF_PT_addons.is_user_addon(mod, user_addon_paths)
|
2011-06-29 15:56:22 +00:00
|
|
|
tot_row = bool(info["wiki_url"]) + bool(info["tracker_url"]) + bool(user_addon)
|
|
|
|
|
|
|
|
if tot_row:
|
2010-06-27 19:04:44 +00:00
|
|
|
split = colsub.row().split(percentage=0.15)
|
2011-09-21 15:18:38 +00:00
|
|
|
split.label(text="Internet:")
|
2010-05-30 20:48:09 +00:00
|
|
|
if info["wiki_url"]:
|
2011-09-21 15:18:38 +00:00
|
|
|
split.operator("wm.url_open", text="Link to the Wiki", icon='HELP').url = info["wiki_url"]
|
2010-05-30 20:48:09 +00:00
|
|
|
if info["tracker_url"]:
|
2011-09-21 15:18:38 +00:00
|
|
|
split.operator("wm.url_open", text="Report a Bug", icon='URL').url = info["tracker_url"]
|
2011-06-29 15:56:22 +00:00
|
|
|
if user_addon:
|
2011-09-21 15:18:38 +00:00
|
|
|
split.operator("wm.addon_remove", text="Remove", icon='CANCEL').module = mod.__name__
|
2010-06-09 19:12:03 +00:00
|
|
|
|
2011-06-29 15:56:22 +00:00
|
|
|
for i in range(4 - tot_row):
|
2010-05-30 20:48:09 +00:00
|
|
|
split.separator()
|
2010-02-14 23:33:18 +00:00
|
|
|
|
merge own commits into render branch into trunk since 27560
27562, 27570, 27571, 27574, 27576, 27577, 27579, 27590, 27591, 27594, 27595, 27596, 27599, 27605, 27611, 27612, 27613, 27614, 27623
2010-03-20 16:41:01 +00:00
|
|
|
# Append missing scripts
|
|
|
|
# First collect scripts that are used but have no script file.
|
|
|
|
module_names = {mod.__name__ for mod, info in addons}
|
|
|
|
missing_modules = {ext for ext in used_ext if ext not in module_names}
|
|
|
|
|
2011-03-07 13:23:45 +00:00
|
|
|
if missing_modules and filter in {"All", "Enabled"}:
|
2010-06-27 19:04:44 +00:00
|
|
|
col.column().separator()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.column().label(text="Missing script files")
|
merge own commits into render branch into trunk since 27560
27562, 27570, 27571, 27574, 27576, 27577, 27579, 27590, 27591, 27594, 27595, 27596, 27599, 27605, 27611, 27612, 27613, 27614, 27623
2010-03-20 16:41:01 +00:00
|
|
|
|
|
|
|
module_names = {mod.__name__ for mod, info in addons}
|
2010-09-25 06:36:01 +00:00
|
|
|
for module_name in sorted(missing_modules):
|
|
|
|
is_enabled = module_name in used_ext
|
merge own commits into render branch into trunk since 27560
27562, 27570, 27571, 27574, 27576, 27577, 27579, 27590, 27591, 27594, 27595, 27596, 27599, 27605, 27611, 27612, 27613, 27614, 27623
2010-03-20 16:41:01 +00:00
|
|
|
# Addon UI Code
|
2010-06-27 19:04:44 +00:00
|
|
|
box = col.column().box()
|
|
|
|
colsub = box.column()
|
|
|
|
row = colsub.row()
|
merge own commits into render branch into trunk since 27560
27562, 27570, 27571, 27574, 27576, 27577, 27579, 27590, 27591, 27594, 27595, 27596, 27599, 27605, 27611, 27612, 27613, 27614, 27623
2010-03-20 16:41:01 +00:00
|
|
|
|
2010-09-25 06:36:01 +00:00
|
|
|
row.label(text=module_name, icon='ERROR')
|
|
|
|
|
|
|
|
if is_enabled:
|
|
|
|
row.operator("wm.addon_disable", icon='CHECKBOX_HLT', text="", emboss=False).module = module_name
|
|
|
|
|
2011-04-04 10:13:04 +00:00
|
|
|
if __name__ == "__main__": # only for live edit.
|
|
|
|
bpy.utils.register_module(__name__)
|