# 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.
        setColors: boolean, defaults to True. Sets the colour ifor the object 
            in the outliner.
        setMetadataLinks: boolean, defaults to True. Links each Maya object to
            its corresponding USD Prim.
    """
1
2
3
4
5
6
7
8
9
10
11
Last Updated: 3/22/2023, 12:29:45 PM