def getRelativeMatrix(node, baseNode):
    """
    Return the matrix of a node relative to a base node.

    Args:
        node (PyNode): The node to retrieve the matrix from
        baseNode (PyNode): The node to which the matrix will be relative
    """
    return node.wm.get() * baseNode.wm.get().inverse()