unreal.DatasmithInterchangeScripting

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

Bases: BlueprintFunctionLibrary

Datasmith Interchange Scripting

C++ Source:

  • Plugin: DatasmithInterchange

  • Module: DatasmithInterchangeScripting

  • File: DatasmithInterchangeScripting.h

classmethod get_datasmith_formats() -> (extensions=str, file_types=str)

Utility method to get list of supported extensions and string to pass to IDesktopPlatform::OpenFileDialog

Returns:

extensions (str): : ‘;’ separated list of extensions supported by Datasmith thru Interchange

file_types (str): : The type filters to show in the dialog when using See: IDesktopPlatform::OpenFileDialog.

Return type:

tuple

get_datasmith_options_for_file(file_path) Array[Object]

Fetch the typed options associated with this file

Parameters:

file_path (str) – The path to the file to get the option for

Returns:

options (Array[Object]):

Return type:

Array[Object]

classmethod load_file(file_path, context) DatasmithInterchangeImportResult

Utility method to load a specific file into the current level

Parameters:
Return type:

DatasmithInterchangeImportResult