Converter#

class omni.converter.hoops.Converter#

Bases: pybind11_object

Methods

__init__(self, parameters)

convert(*args, **kwargs)

Overloaded function.

__init__(
self: omni.converter.hoops._omni_converter_hoops.Converter,
parameters: omni.converter.hoops._omni_converter_hoops.Parameters,
) None#
convert(*args, **kwargs)#

Overloaded function.

  1. convert(self: omni.converter.hoops._omni_converter_hoops.Converter, inputPath: str, outputPath: str, args: Dict[str, str] = {}) -> Tuple[int, str]

    Convert CAD file to USD.

    Args:

    inputPath: Path of CAD file to read outputPath: Path of the USD file to write args: Additional arguments may be supplied to control behavior specific to converter and the layer’s file format.

    Returns:

    A (bool, string) tuple with bool indicating if the conversion was successful and string indicating error message if any.

  2. convert(self: omni.converter.hoops._omni_converter_hoops.Converter, inputPath: str, layer: pxr.Sdf.Layer) -> Tuple[int, str]

    Convert CAD file to USD.

    Args:

    inputPath: Path of CAD file to read outputLayer: USD layer to write to

    Returns:

    A (bool, string) tuple with bool indicating if the conversion was successful and string indicating error message if any.