Parameters#

class omni.converter.hoops.Parameters#

Bases: pybind11_object

HOOPS Converter Parameters Class.

Methods

__init__(*args, **kwargs)

Overloaded function.

parseArgs(self[, args])

Parse SdfLayer::FileFormatArguments to populate this Parameters instance

toArgs(self)

Create file format arguments that could be used to recreate these conversion parameters.

Attributes

accurateSurfaceCurvatures

Consider surface curvature to control triangles elongation direction

accurateTessellation

If false, tessellate for visualization.

convertCurves

If true then curve objects are imported as USD BasisCurves.

convertHidden

If false, ignore hidden or non-visible parts during conversion.

convertMetadata

If true then metadata, including PMI, are imported as USD Attributes.

creator

Creator version string

dedup

Deduplicate mesh vertices and normals (welds mesh)

globalXforms

When instancing = false, this flag controls whether globalXforms are composited.

instancingStyle

Style of instancing to use in USD.

materialType

ePreviewSurface (compatible with USD-enabled DCCs), ePreviewSurface_OmniPBR (optimized for RTX rendering and USD DCCs).

reportProgress

If true then we report import/export progress

reportProgressFreq

Progress reporting frequency in Hz.

tessLOD

0=kA3DTessLODExtraLow, 1=kA3DTessLODLow,2=kA3DTessLODMedium, 3=kA3DTessLODHigh, 4=kA3DTessLODExtraHigh

upAxis

eFileDefault (set up axis based on known formats that embeds it), eYup (Set USD stage to Y up), eZup (Set USD stage to Z up)

useMaterials

If true then use specified modes of materials.

useNormals

If true then we pass normals to USD.

__init__(*args, **kwargs)#

Overloaded function.

  1. __init__(self: omni.converter.hoops._omni_converter_hoops.Parameters) -> None

  2. __init__(self: omni.converter.hoops._omni_converter_hoops.Parameters, args: Dict[str, str]) -> None

parseArgs(
self: omni.converter.hoops._omni_converter_hoops.Parameters,
args: Dict[str, str] = {},
) None#

Parse SdfLayer::FileFormatArguments to populate this Parameters instance

Parameters:

pxr::SdfLayer::FileFormatArguments – FileFormatArguments which represent convert options.

toArgs(
self: omni.converter.hoops._omni_converter_hoops.Parameters,
) Dict[str, str]#

Create file format arguments that could be used to recreate these conversion parameters.

property accurateSurfaceCurvatures#

Consider surface curvature to control triangles elongation direction

Type:

(bool)

property accurateTessellation#

If false, tessellate for visualization. If true, tessellate for analysis.

Type:

(bool)

property convertCurves#

If true then curve objects are imported as USD BasisCurves. If false, then we skip and do not Import any curve object to USD.

Type:

(bool)

property convertHidden#

If false, ignore hidden or non-visible parts during conversion. If true, convert all parts and maintain visibility settings

Type:

(bool)

property convertMetadata#

If true then metadata, including PMI, are imported as USD Attributes. If false, then we skip and do not Import any metadata to USD.

Type:

(bool)

property creator#

Creator version string

Type:

(str)

property dedup#

Deduplicate mesh vertices and normals (welds mesh)

Type:

(bool)

property globalXforms#

When instancing = false, this flag controls whether globalXforms are composited. If false local transforms are applied

Type:

(bool)

property instancingStyle#

Style of instancing to use in USD.

property materialType#

ePreviewSurface (compatible with USD-enabled DCCs), ePreviewSurface_OmniPBR (optimized for RTX rendering and USD DCCs).

Type:

(enum)

Type:

Material type

property reportProgress#

If true then we report import/export progress

Type:

(bool)

property reportProgressFreq#

Progress reporting frequency in Hz.

Type:

(int)

property tessLOD#

0=kA3DTessLODExtraLow, 1=kA3DTessLODLow,2=kA3DTessLODMedium, 3=kA3DTessLODHigh, 4=kA3DTessLODExtraHigh

Type:

(int)

Type:

Tessellation Level of Detail (LOD) presets

property upAxis#

eFileDefault (set up axis based on known formats that embeds it), eYup (Set USD stage to Y up), eZup (Set USD stage to Z up)

Type:

(enum)

Type:

Up Axis

property useMaterials#

If true then use specified modes of materials. if false, then use only basic display colors

Type:

(bool)

property useNormals#

If true then we pass normals to USD. if false, then we do not.

Type:

(bool)