unreal.InterchangeUsdTranslatorSettings

class unreal.InterchangeUsdTranslatorSettings(outer: Object | None = None, name: Name | str = 'None')

Bases: InterchangeTranslatorSettings

Interchange Usd Translator Settings

C++ Source:

  • Plugin: InterchangeOpenUSD

  • Module: InterchangeOpenUSDImport

  • File: InterchangeUsdTranslator.h

Editor Properties: (see get_editor_property/set_editor_property)

  • attribute_regex_filter (str): [Read-Write] Regex to match against USD prim attribute names to decide whether to convert them into translated node user attributes

  • interpolation_type (UsdInterpolationType): [Read-Write] Describes how to interpolate between a timeSample value and the next

  • material_purpose (Name): [Read-Write] Specifies which material purpose to use when parsing USD material bindings, in addition to the “allPurpose” fallback

  • metadata_regex_filter (str): [Read-Write] Regex to match against the full USD prim metadata key to decide whether to convert them into translated node user attributes.

    Note that nested dictionaries are flattened using the “:” character as separator. So a myMetadata key inside the customData dictionary will end up with the full key ‘customData:myMetadata’, and could be selected by a regex filter ‘customData:my’, or just ‘custom’, or ‘my’, etc.

  • override_stage_options (bool): [Read-Write] Whether to use the specified StageOptions instead of the stage’s own settings

  • render_context (Name): [Read-Write] Specifies which set of shaders to use when parsing USD materials, in addition to the universal render context.

  • stage_options (UsdStageOptions): [Read-Write] Custom StageOptions to use for the stage

  • translate_prim_attributes (bool): [Read-Write] Whether to convert USD prim attributes into translated node user attributes, ultimately ending up imported as asset and actor metadata.

    Note that AttributeRegexFilter may be needed in order to select only the desired metadata, as otherwise regular attributes like ‘points’ and ‘faceVertexCounts’ will also get translated into Interchange metadata, which could be expensive.

  • translate_prim_metadata (bool): [Read-Write] Whether to convert USD prim metadata into translated node user attributes, if they pass the regex filter. See MetadataRegexFilter.