def move_rotations_to_joint_orients(joint):
    """
    Moves the rotations on the skeleton to the joint orients

    :param joint: The joint to alter
    :type joint: pm.nt.Joint

    :return: None
    """
    # -- Store the world space matrix
    ws_mat4 = joint.getMatrix(worldSpace=True)

    # -- Zero the joint orients
    for attr in ['jointOrientX', 'jointOrientY', 'jointOrientZ']:
        joint.attr(attr).set(0)

    # -- Now we can restore the matrix
    joint.setMatrix(ws_mat4, worldSpace=True)

    # -- Now we can shift the values from the rotation to the orient
    # -- knowing that the world transform will be retained
    for axis in ['X', 'Y', 'Z']:

        # -- Set the orient value
        joint.attr('jointOrient%s' % axis).set(
            joint.attr('rotate%s' % axis).get(),
        )

        # -- Zero the rotation value
        joint.attr('rotate%s' % axis).set(0)

    return None