Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions bvh.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,17 @@ def iterate_joints(joint):
iterate_joints(child)
iterate_joints(next(self.root.filter('ROOT')))
return joints

def get_channel_names(self):
joints = []

def iterate_joints(joint):
joints.append(joint['CHANNELS'][1:])
for child in joint.filter('JOINT'):
iterate_joints(child)
iterate_joints(next(self.root.filter('ROOT')))
return joints

def joint_direct_children(self, name):
joint = self.get_joint(name)
return [child for child in joint.filter('JOINT')]
Expand Down