diff options
author | Michael Krupa <kroopson@wp.pl> | 2011-12-07 18:02:03 +0400 |
---|---|---|
committer | Michael Krupa <kroopson@wp.pl> | 2011-12-07 18:02:03 +0400 |
commit | c2bb44d9b8b7cb5ab783aa30fe586e04dfacbbd8 (patch) | |
tree | bea5f09bb4571d8d2cee126892ef481459f361ef /io_anim_nuke_chan/__init__.py | |
parent | 95358abe28a16b085f3ffce691d86d035101aa5b (diff) |
Added full support for film back sensor size (2 new properties in ImportChan class - sensor_width and sensor_height)
Diffstat (limited to 'io_anim_nuke_chan/__init__.py')
-rw-r--r-- | io_anim_nuke_chan/__init__.py | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/io_anim_nuke_chan/__init__.py b/io_anim_nuke_chan/__init__.py index 4a267b02..7df69dff 100644 --- a/io_anim_nuke_chan/__init__.py +++ b/io_anim_nuke_chan/__init__.py @@ -22,7 +22,7 @@ bl_info = { "name": "Nuke Animation Format (.chan)", "author": "Michael Krupa", "version": (1, 0), - "blender": (2, 6, 0), + "blender": (2, 6, 1), "api": 36079, "location": "File > Import/Export > Nuke (.chan)", "description": "Import/Export object's animation with nuke", @@ -49,7 +49,8 @@ from bpy.types import Operator from bpy_extras.io_utils import ImportHelper, ExportHelper from bpy.props import (StringProperty, BoolProperty, - EnumProperty) + EnumProperty, + FloatProperty) # property shared by both operators rotation_order = EnumProperty( @@ -81,6 +82,16 @@ class ImportChan(Operator, ImportHelper): description="Switch the Y and Z axis", default=True) + sensor_width = FloatProperty( + name="Camera sensor width", + description="Imported camera sensor width", + default=32.0) + + sensor_height = FloatProperty( + name="Camera sensor height", + description="Imported camera sensor height", + default=18.0) + @classmethod def poll(cls, context): return context.active_object is not None @@ -90,7 +101,9 @@ class ImportChan(Operator, ImportHelper): return import_nuke_chan.read_chan(context, self.filepath, self.z_up, - self.rotation_order) + self.rotation_order, + self.sensor_width, + self.sensor_height) class ExportChan(Operator, ExportHelper): |