[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2382] trunk/py/scripts/addons/ io_import_scene_mhx.py: MHX importer: Visibility panel.
Thomas Larsson
thomas_larsson_01 at hotmail.com
Sat Oct 1 11:38:55 CEST 2011
Revision: 2382
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2382
Author: thomasl
Date: 2011-10-01 09:38:54 +0000 (Sat, 01 Oct 2011)
Log Message:
-----------
MHX importer: Visibility panel.
Modified Paths:
--------------
trunk/py/scripts/addons/io_import_scene_mhx.py
Modified: trunk/py/scripts/addons/io_import_scene_mhx.py
===================================================================
--- trunk/py/scripts/addons/io_import_scene_mhx.py 2011-10-01 01:26:37 UTC (rev 2381)
+++ trunk/py/scripts/addons/io_import_scene_mhx.py 2011-10-01 09:38:54 UTC (rev 2382)
@@ -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 @@
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 @@
MAJOR_VERSION = 1
MINOR_VERSION = 8
-SUB_VERSION = 2
+SUB_VERSION = 3
BLENDER_VERSION = (2, 59, 2)
#
@@ -3531,6 +3531,33 @@
###################################################################################
#
+# 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
#
###################################################################################
More information about the Bf-extensions-cvs
mailing list