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-09 16:53:39 +0400
committerMichael Krupa <kroopson@wp.pl>2011-12-09 16:53:39 +0400
commitb7fd7a03f778b4231a517270ebdb8e1b36b2a090 (patch)
treec1d25e614fc909abc3033cceba4cda1e10cd551a /io_anim_nuke_chan
parent2a79b350e8543d25d71e0c55fae2ec3805a85c9e (diff)
Fixed the last 2 bugs. Ready for release.
Diffstat (limited to 'io_anim_nuke_chan')
-rw-r--r--io_anim_nuke_chan/export_nuke_chan.py6
-rw-r--r--io_anim_nuke_chan/import_nuke_chan.py2
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()