Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exporting and slicing #11

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Exporting and slicing #11

wants to merge 9 commits into from

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.

2 participants