Skip to content

Commit

Permalink
Update csv_to_bvh.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Dene33 authored Apr 29, 2019
1 parent acaa80a commit 3ef1228
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion csv_to_bvh.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@


bpy.context.scene.frame_set(frame_num)
bpy.data.scenes['Scene'].frame_end = frame_num + 1

for ob, position in zip(empties, coordinates):
ob.location = position
ob.keyframe_insert(data_path="location", index=-1)
Expand All @@ -44,4 +46,4 @@

target_file = 'hmr/output/bvh_animation/estimated_animation.bvh'

bpy.ops.export_anim.bvh(filepath=target_file)
bpy.ops.export_anim.bvh(filepath=target_file)

0 comments on commit 3ef1228

Please sign in to comment.