[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3440] trunk/py/scripts/addons/ io_import_scene_mhx.py: MHX importer v1.13.

Thomas Larsson thomas_larsson_01 at hotmail.com
Sat Jun 2 22:41:19 CEST 2012


Revision: 3440
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3440
Author:   thomasl
Date:     2012-06-02 20:41:10 +0000 (Sat, 02 Jun 2012)
Log Message:
-----------
MHX importer v1.13. Option to turn shapekey drivers off.

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	2012-06-01 21:59:06 UTC (rev 3439)
+++ trunk/py/scripts/addons/io_import_scene_mhx.py	2012-06-02 20:41:10 UTC (rev 3440)
@@ -26,7 +26,7 @@
 """
 Abstract
 MHX (MakeHuman eXchange format) importer for Blender 2.5x.
-Version 1.12.0
+Version 1.13.0
 
 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, 12, 0),
+    'version': (1, 13, 0),
     "blender": (2, 6, 3),
     'location': "File > Import > MakeHuman (.mhx)",
     'description': 'Import files in the MakeHuman eXchange format (.mhx)',
@@ -50,7 +50,7 @@
     'category': 'Import-Export'}
 
 MAJOR_VERSION = 1
-MINOR_VERSION = 12
+MINOR_VERSION = 13
 SUB_VERSION = 0
 
 #
@@ -102,9 +102,12 @@
 
 T_Diamond = 0x10
 T_Replace = 0x20
-T_Face = 0x40
-T_Shape = 0x80
+T_Shapekeys = 0x40
+T_ShapeDrivers = 0x80
 
+T_Face = T_Shapekeys
+T_Shape = T_Shapekeys
+
 T_Mesh = 0x100
 T_Armature = 0x200
 T_Proxy = 0x400
@@ -115,7 +118,7 @@
 T_Symm = 0x4000
 
 toggle = (T_EnforceVersion + T_Mesh + T_Armature + 
-        T_Face + T_Shape + T_Proxy + T_Clothes + T_Rigify)
+        T_Shapekeys + T_ShapeDrivers + T_Proxy + T_Clothes + T_Rigify)
 
 #
 #    Dictionaries
@@ -1478,7 +1481,7 @@
 #
 
 def doShape(name):
-    if (toggle & T_Shape+T_Face) and (name == 'Basis'):
+    if (toggle & T_Shapekeys) and (name == 'Basis'):
         return True
     else:
         return (toggle & T_Face)
@@ -2883,8 +2886,8 @@
     #("replace", "Replace scene", "Replace scene", T_Replace),
     ("cage", "Cage", "Load mesh deform cage", T_Cage),
     ("clothes", "Clothes", "Include clothes", T_Clothes),
-    ("face", "Face shapes", "Include facial shapekeys", T_Face),
-    ("shape", "Body shapes", "Include body shapekeys", T_Shape),
+    ("shapekeys", "Shapekeys", "Include shapekeys", T_Shapekeys),
+    ("shapedrivers", "Shapekey drivers", "Include shapekey drivers", T_ShapeDrivers),
     #("symm", "Symmetric shapes", "Keep shapekeys symmetric", T_Symm),
     ("diamond", "Helper geometry", "Keep helper geometry", T_Diamond),
     ("rigify", "Rigify", "Create rigify control rig", T_Rigify),



More information about the Bf-extensions-cvs mailing list