diff options
author | Thomas Larsson <thomas_larsson_01@hotmail.com> | 2011-10-01 13:38:54 +0400 |
---|---|---|
committer | Thomas Larsson <thomas_larsson_01@hotmail.com> | 2011-10-01 13:38:54 +0400 |
commit | d03b6aa78f7958c1de1f66ce99d27a252a5246c9 (patch) | |
tree | bfc3fe3a90b62e139d4c09e894276dc1f82fba13 /io_import_scene_mhx.py | |
parent | 4df5cd69ae6d820267dbdc316dd137b90d4b3122 (diff) |
MHX importer: Visibility panel.
Diffstat (limited to 'io_import_scene_mhx.py')
-rw-r--r-- | io_import_scene_mhx.py | 33 |
1 files changed, 30 insertions, 3 deletions
diff --git a/io_import_scene_mhx.py b/io_import_scene_mhx.py index dd03cca0..21239dd9 100644 --- a/io_import_scene_mhx.py +++ b/io_import_scene_mhx.py @@ -26,7 +26,7 @@ """ Abstract MHX (MakeHuman eXchange format) importer for Blender 2.5x. -Version 1.8.2 +Version 1.8.3 This script should be distributed with Blender. If not, place it in the .blender/scripts/addons dir @@ -39,7 +39,7 @@ Alternatively, run the script in the script editor (Alt-P), and access from the bl_info = { 'name': 'Import: MakeHuman (.mhx)', 'author': 'Thomas Larsson', - 'version': (1, 8, 2), + 'version': (1, 8, 3), "blender": (2, 5, 9), "api": 40335, 'location': "File > Import > MakeHuman (.mhx)", @@ -52,7 +52,7 @@ bl_info = { MAJOR_VERSION = 1 MINOR_VERSION = 8 -SUB_VERSION = 2 +SUB_VERSION = 3 BLENDER_VERSION = (2, 59, 2) # @@ -3531,6 +3531,33 @@ class MhxDriversPanel(bpy.types.Panel): ################################################################################### # +# Visibility panel +# +################################################################################### +# +# class MhxVisibilityPanel(bpy.types.Panel): +# + +class MhxVisibilityPanel(bpy.types.Panel): + bl_label = "MHX Visibility" + bl_space_type = "VIEW_3D" + bl_region_type = "UI" + + @classmethod + def poll(cls, context): + return pollMhxRig(context.object) + + def draw(self, context): + ob = context.object + props = list(ob.keys()) + props.sort() + for prop in props: + if prop[0:4] == "Hide": + self.layout.prop(ob, '["%s"]' % prop) + return + +################################################################################### +# # Layers panel # ################################################################################### |