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:
authorMichael Krupa <kroopson@wp.pl>2011-12-07 18:02:03 +0400
committerMichael Krupa <kroopson@wp.pl>2011-12-07 18:02:03 +0400
commitc2bb44d9b8b7cb5ab783aa30fe586e04dfacbbd8 (patch)
treebea5f09bb4571d8d2cee126892ef481459f361ef /io_anim_nuke_chan/export_nuke_chan.py
parent95358abe28a16b085f3ffce691d86d035101aa5b (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/export_nuke_chan.py')
-rw-r--r--io_anim_nuke_chan/export_nuke_chan.py13
1 files changed, 2 insertions, 11 deletions
diff --git a/io_anim_nuke_chan/export_nuke_chan.py b/io_anim_nuke_chan/export_nuke_chan.py
index bae6762a..e0fdefb5 100644
--- a/io_anim_nuke_chan/export_nuke_chan.py
+++ b/io_anim_nuke_chan/export_nuke_chan.py
@@ -37,11 +37,6 @@ def save_chan(context, filepath, y_up, rot_ord):
f_start = scene.frame_start
f_end = scene.frame_end
- # get the resolution (needed by nuke)
- res_x = scene.render.resolution_x
- res_y = scene.render.resolution_y
- res_ratio = res_y / res_x
-
# prepare the correcting matrix
rot_mat = Matrix.Rotation(radians(-90.0), 4, 'X').to_4x4()
@@ -76,12 +71,8 @@ def save_chan(context, filepath, y_up, rot_ord):
# if we have a camera, add the focal length
if camera:
- if camera.sensor_fit == 'VERTICAL':
- sensor_x = camera.sensor_width
- sensor_y = camera.sensor_height
- else:
- sensor_x = camera.sensor_width
- sensor_y = sensor_x * res_ratio
+ sensor_x = camera.sensor_width
+ sensor_y = camera.sensor_height
cam_lens = camera.lens
# calculate the vertical field of view