# Selection

# GetSelectedPrimitives

def GetSelectedPrimitives(nodeName):
    """Returns the paths of the selected primitives on the given node.

    Args:
        nodeName: A `str` representing the name of the mvUsdCompoundShape node
            for which to fetch selection information.

    Returns:
        A `list` of 'str' representing the paths of the USD primitives
        currently selected in the given node.
    """
1
2
3
4
5
6
7
8
9
10
11

# SelectPrimitives

def SelectPrimitives(nodeName, primPaths):
    """Selects the primitives with the given paths on the given node.

    Args:
        nodeName: A `str` representing the name of the mvUsdCompoundShape node
            for which to perform primitives selection.
        primPaths: A `list` of 'str' representing the paths of the USD
            primitives to be selected in the given node.
    """
1
2
3
4
5
6
7
8
9

# GetChildrenForPath

def GetChildrenForPath(nodeName, itemPath, includeFullPath=True):
    """Returns the list of children for the given item path on the given node.

    Args:
        nodeName: A `str` representing the name of the mvUsdCompoundShape node
            for which to query item children.
        itemPath: A 'str' representing the path of the USD item for which
            to get children.
        includeFullPath: A 'bool' flag. If True, the returned 'MvUsdItem'
            objects will include information about the item's full path.

    Returns:
        A 'list' of 'MvUsdItem' containing information about the children of
        the given item.
    """
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

# MvUsdItem

class MvUsdItem(object):
    """Represents an item in the USD hierarchy.

    Exposes the following properties:

     - name
     - fullPath
     - typeName
     - parent

    and the following methods:

     - hasParent()
    """
1
2
3
4
5
6
7
8
9
10
11
12
13
14

# GetUsdItemAtPath

def GetUsdItemAtPath(nodeName, itemPath):
    """Returns the USD item at the given path on the given node.

    Args:
        nodeName: A `str` representing the name of the mvUsdCompoundShape node
            for which to query a USD item.
        itemPath: A 'str' representing the path of the USD item to be returned.

    Returns:
        A 'MvUsdItem' containing information about the requested item.
    """
1
2
3
4
5
6
7
8
9
10
11
Last Updated: 10/30/2020, 10:01:42 AM