# Importing

# ImportPrim

def ImportPrim(nodeName, primPath, options=None):
    """Imports the USD Prim at the given path from the given compound node.

    Args:
        nodeName: A `str` representing the name of the mvUsdCompoundShape node
            from which to import a Prim.
        primPath: A 'str' representing the path of the USD Prim to import.
        options: An object of type 'ImportOptions' containing the options to be
            used for the import operation.

    Returns:
        A pair of `str` containing the created transform and shape nodes.
    """
1
2
3
4
5
6
7
8
9
10
11
12
13

# ImportOptions

class ImportOptions(object):
    """Defines the options used when importing USD Prims.

    Fields:
        targetTransformNode: string, defaults to 'None'. Only relevant when
            importing a Usd 'Xform' prim.
    """
1
2
3
4
5
6
7
Last Updated: 7/8/2020, 11:52:32 AM