diff options
-rw-r--r-- | io_anim_nuke_chan/export_nuke_chan.py | 6 | ||||
-rw-r--r-- | io_anim_nuke_chan/import_nuke_chan.py | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/io_anim_nuke_chan/export_nuke_chan.py b/io_anim_nuke_chan/export_nuke_chan.py index bdb8a87c..034ce6d9 100644 --- a/io_anim_nuke_chan/export_nuke_chan.py +++ b/io_anim_nuke_chan/export_nuke_chan.py @@ -44,7 +44,7 @@ def save_chan(context, filepath, y_up, rot_ord): fw = filehandle.write # iterate the frames - for frame in range(f_start, f_end, 1): + for frame in range(f_start, f_end + 1, 1): # set the current frame scene.frame_set(frame) @@ -69,10 +69,8 @@ def save_chan(context, filepath, y_up, rot_ord): fw("%f\t%f\t%f\t" % (degrees(r[0]), degrees(r[1]), degrees(r[2]))) - # if we have a camera, add the focal length + # if the selected object is a camera export vertical fov also if camera: - sensor_x = camera.sensor_width - sensor_y = camera.sensor_height vfov = degrees(camera.angle_y) fw("%f" % vfov) diff --git a/io_anim_nuke_chan/import_nuke_chan.py b/io_anim_nuke_chan/import_nuke_chan.py index aa534a97..ed8528ab 100644 --- a/io_anim_nuke_chan/import_nuke_chan.py +++ b/io_anim_nuke_chan/import_nuke_chan.py @@ -105,7 +105,7 @@ def read_chan(context, filepath, z_up, rot_ord, sensor_width, sensor_height): camera.sensor_fit = 'HORIZONTAL' camera.sensor_width = sensor_width camera.sensor_height = sensor_height - camera.angle_y = radiansfloat(data[7]) + camera.angle_y = radians(float(data[7])) camera.keyframe_insert("lens") filehandle.close() |