# Skeleton

# AssignSkeletonAnimation

def AssignSkeletonAnimation(nodeName, skelPath, targetNode, targetAnimPath):
    """Assigns to the given node/path the specified skeleton animation.

    The skeleton to which to assign the animation is expected to be defined on
    the 'nodeName' mvUsdCompoundShape node on the location specified by
    'skelPath' (that must be of type 'Skeleton').
    The skeleton animation to be assigned is expected to be defined on the
    'targetNode' mvUsdCompoundShape node on the location specified by
    'targetAnimPath' (that must be of type 'SkelAnimation').

    Args:
        nodeName: The name of the mvUsdCompoundShape node to which to assign
            skeleton animation.
        skelPath: The path of the USD `Skeleton` location on the 'nodeName`
            mvUsdCompoundShape node to which to assign the animation.
        targetNode: The name of the mvUsdCompoundShape node containing the
            skeleton animation location.
        targetAnimPath: The path of the USD `SkelAnimation` location to be used
            as source for animation data.

    Returns:
        An `int` representing the ID of the created relationship.
    """
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Last Updated: 7/1/2020, 3:03:11 PM