Skip to content

Conversation

@Saeki-M
Copy link

@Saeki-M Saeki-M commented Aug 28, 2021

Added exporting to bvh file and slicing in ms.

from bvh import Bvh

mocap = Bvh.from_file('tests/test_freebvh.bvh')

# clip 1000 ms ~ 3000ms
clipped_mocap = mocap[1000:3000]

# get duration in ms
assert len(clipped_mocap) == 2000

# save to new file
clipped_mocap.export('new.bvh')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant