Skip to content
Snippets Groups Projects
Commit 0e0ee5b1 authored by Olivier Bertrand's avatar Olivier Bertrand
Browse files

Corrent traj, quaternion where not as in render traj

parent a71ad70c
No related branches found
No related tags found
No related merge requests found
......@@ -82,8 +82,8 @@ def run(trajfile):
curveOB.select = True
# bpy.ops.curve.primitive_nurbs_circle_add(
# radius=1, view_align=False, enter_editmode=False, location=(0, 0, 0))
#bpy.context.object.data.resolution_u = 3
#bpy.context.object.data.bevel_object = bpy.data.objects["NurbsCircle"]
# bpy.context.object.data.resolution_u = 3
# bpy.context.object.data.bevel_object = bpy.data.objects["NurbsCircle"]
# add frame
bpy.ops.object.empty_add(type='ARROWS',
......@@ -126,7 +126,7 @@ def run(trajfile):
axes=convention)
frameobject.matrix_world = rotmat.transpose()
if _renderaxis == '+x':
initrot = quatmatrix([0.5, 0.5, -0.5, -0.5])
initrot = quatmatrix([0.5, -0.5, 0.5, 0.5])
# The camera is aligned in -z
# A rotation along z wll thus roll the camera
# Althougth the camera should yaw in such case
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment