diff options
Diffstat (limited to 'io_anim_bvh/__init__.py')
-rw-r--r-- | io_anim_bvh/__init__.py | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/io_anim_bvh/__init__.py b/io_anim_bvh/__init__.py index e8b51a77..5cdc79f2 100644 --- a/io_anim_bvh/__init__.py +++ b/io_anim_bvh/__init__.py @@ -37,7 +37,8 @@ if "bpy" in locals(): import imp if "import_bvh" in locals(): imp.reload(import_bvh) - + if "export_bvh" in locals(): + imp.reload(export_bvh) import bpy from bpy.props import StringProperty, FloatProperty, IntProperty, BoolProperty, EnumProperty @@ -95,6 +96,19 @@ class ExportBVH(bpy.types.Operator, ExportHelper): frame_start = IntProperty(name="Start Frame", description="Starting frame to export", default=0) frame_end = IntProperty(name="End Frame", description="End frame to export", default=0) + rotate_mode = EnumProperty(items=( + ('NATIVE', "Euler (Native)", "Use the rotation order defined in the BVH file"), + ('XYZ', "Euler (XYZ)", "Convert rotations to euler XYZ"), + ('XZY', "Euler (XZY)", "Convert rotations to euler XZY"), + ('YXZ', "Euler (YXZ)", "Convert rotations to euler YXZ"), + ('YZX', "Euler (YZX)", "Convert rotations to euler YZX"), + ('ZXY', "Euler (ZXY)", "Convert rotations to euler ZXY"), + ('ZYX', "Euler (ZYX)", "Convert rotations to euler ZYX"), + ), + name="Rotation", + description="Rotation conversion.", + default='NATIVE') + @classmethod def poll(cls, context): obj = context.object |