def METHOD_NAME(self, b_obj, n_root_node):
    """Export all bones of an armature."""
    assert (b_obj.type == 'ARMATURE')
    self.b_action = self.transform_anim.get_active_action(b_obj)
    # the armature b_obj was already exported as a NiNode ("Scene Root") n_root_node
    # export the bones as NiNodes, starting from root bones
    old_position = b_obj.data.pose_position
    b_obj.data.pose_position = 'POSE'
    # start export with root bones
    for b_bone in b_obj.data.bones.values():
        if not b_bone.parent:
            self.export_bone(b_obj, b_bone, n_root_node, n_root_node)
    b_obj.data.pose_position = old_position