HoopsCoreConverter#

class omni.kit.converter.hoops_core.HoopsCoreConverter#

Bases: ICadCoreExtBase

Hoops Core Converter Extension

Methods

create_converter_task(input_path, ...)

Converts CAD file (import_path) to USD (output_path)

on_shutdown()

Uninitialize the Hoops Converter and/or un-registers the service

on_startup(ext_id)

Initialize the Hoops Converter and/or un-registers the service

Attributes

FILTER_DATA

SERVICE_TITLE

__init__(self: omni.ext._extensions.IExt) None#
OPTIONS_CLS#

alias of HoopsOptions

create_converter_task(
input_path: str,
output_path: str,
file_format_args: dict[str, str],
)#

Converts CAD file (import_path) to USD (output_path)

Returns: An object containing the Path to the converted USD (str) and converter status (namedtuple).

If the path is empty, the conversion has failed.

The namedtuple contains error code (int) and error message (str).

Parameters:
  • input_path (str) – Full path to the input file

  • output_path (str) – Full path to the output file

  • file_format_args (dict[str,str]) – FileFormatArguments to pass to the converter

on_shutdown() None#

Uninitialize the Hoops Converter and/or un-registers the service

on_startup(ext_id: str) None#

Initialize the Hoops Converter and/or un-registers the service