Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.