Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Larsson <thomas_larsson_01@hotmail.com>2012-06-03 00:41:10 +0400
committerThomas Larsson <thomas_larsson_01@hotmail.com>2012-06-03 00:41:10 +0400
commit796d93f2ab59c049bd999b48e8683d865228fa68 (patch)
treeb427f82d54829df56c9690836b2f7b87d00e1e8c /io_import_scene_mhx.py
parent98281f17e2d5bb07767e81041c454f4d113f6246 (diff)
MHX importer v1.13. Option to turn shapekey drivers off.
Diffstat (limited to 'io_import_scene_mhx.py')
-rw-r--r--io_import_scene_mhx.py21
1 files changed, 12 insertions, 9 deletions
diff --git a/io_import_scene_mhx.py b/io_import_scene_mhx.py
index 79fe4c2f..d4cea9e4 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.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 @@ 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, 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 @@ bl_info = {
'category': 'Import-Export'}
MAJOR_VERSION = 1
-MINOR_VERSION = 12
+MINOR_VERSION = 13
SUB_VERSION = 0
#
@@ -102,8 +102,11 @@ T_CrashSafe = 0x0
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
@@ -115,7 +118,7 @@ T_Opcns = 0x2000
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 parseVertexGroup(ob, me, args, tokens):
#
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 @@ MhxBoolProps = [
#("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),