unreal.InterchangeSourceNode

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

Bases: InterchangeBaseNode

This class allows a translator to add general source data that describes the whole source. Pipelines can use this information.

C++ Source:

  • Module: InterchangeCore

  • File: InterchangeSourceNode.h

get_custom_animated_time_end() double or None

Query the end of the source animated time.

Returns:

attribute_value (double):

Return type:

double or None

get_custom_animated_time_start() double or None

Query the start of the source animated time.

Returns:

attribute_value (double):

Return type:

double or None

get_custom_axis_conversion_inverse_transform() Transform or None

Query Axis Conversion Inverse Transform (Primarily used for Socket transform calculations.).

Returns:

axis_conversion_inverse_transform (Transform):

Return type:

Transform or None

get_custom_import_unused_material() bool or None

Query whether to import materials that aren’t used.

Returns:

attribute_value (bool):

Return type:

bool or None

get_custom_reimport_strategy_flags() uint8 or None

Get the reimport strategy based on EReimportStrategyFlags

Returns:

strategy_flag (uint8):

Return type:

uint8 or None

get_custom_source_frame_rate_denominator() int32 or None

Query the source frame rate denominator.

Returns:

attribute_value (int32):

Return type:

int32 or None

get_custom_source_frame_rate_numerator() int32 or None

Query the source frame rate numerator.

Returns:

attribute_value (int32):

Return type:

int32 or None

get_custom_source_timeline_end() double or None

Query the end of the source timeline.

Returns:

attribute_value (double):

Return type:

double or None

get_custom_source_timeline_start() double or None

Query the start of the source timeline.

Returns:

attribute_value (double):

Return type:

double or None

get_custom_sub_path_prefix() str or None

Gets a prefix that should be added to factory node SubPath custom attributes. For example this can contain the imported scene’s name, so that we create an additional content folder named after it to contain the imported assets.

Returns:

prefix (str):

Return type:

str or None

get_custom_use_asset_type_sub_path_suffix() bool or None

Gets whether factory nodes for this import should have a suffix named after their asset category added to their custom sub path attribute. For example, if this is set then imported StaticMesh assets will be placed inside of an additional content folder named “StaticMeshes”.

Note that this is done automatically for all factory nodes created by the generic assets pipeline, but must be handled manually by calling FillSubPathFromSourceNode() from InterchangePipelineHelper.h for any factory nodes that other pipelines may create.

Returns:

suffix (bool):

Return type:

bool or None

get_custom_use_legacy_skeletal_mesh_bake_transform() bool or None

Does skeletalMesh factory should uses legacy bake transform behavior to create the skeletal mesh.

Returns:

attribute_value (bool):

Return type:

bool or None

get_extra_information() Map[str, str]

Get Extra Information that we want to show in the Config Panel (such as File Information).

Returns:

out_extra_information (Map[str, str]):

Return type:

Map[str, str]

classmethod get_unique_instance(node_container) InterchangeSourceNode

This function should be use by pipelines to avoid creating a node. If the unique instance doesn’t exist, returns nullptr.

Parameters:

node_container (InterchangeBaseNodeContainer)

Return type:

InterchangeSourceNode

initialize_source_node(unique_id, display_label) None

Initialize the base data of the node.

Parameters:
  • unique_id (str) – The unique ID for this node.

  • display_label (str) – The name of the node.

remove_extra_information(name) bool

Remove Extra Information that we dont want to show in the Config Panel.

Parameters:

name (str)

Return type:

bool

set_custom_animated_time_end(attribute_value) bool

Set the end of the source animated time.

Parameters:

attribute_value (double)

Return type:

bool

set_custom_animated_time_start(attribute_value) bool

Set the start of the source animated time.

Parameters:

attribute_value (double)

Return type:

bool

set_custom_axis_conversion_inverse_transform(axis_conversion_inverse_transform) bool

Set the Axis Conversion Inverse Transform (Primarily used for Socket transform calculations.).

Parameters:

axis_conversion_inverse_transform (Transform)

Return type:

bool

set_custom_import_unused_material(attribute_value) bool

Set whether to import materials that aren’t used.

Parameters:

attribute_value (bool)

Return type:

bool

set_custom_reimport_strategy_flags(strategy_flag) bool

Set the reimport strategy based on EReimportStrategyFlags

Parameters:

strategy_flag (uint8)

Return type:

bool

set_custom_source_frame_rate_denominator(attribute_value) bool

Set the source frame rate denominator.

Parameters:

attribute_value (int32)

Return type:

bool

set_custom_source_frame_rate_numerator(attribute_value) bool

Set the source frame rate numerator.

Parameters:

attribute_value (int32)

Return type:

bool

set_custom_source_timeline_end(attribute_value) bool

Set the end of the source timeline.

Parameters:

attribute_value (double)

Return type:

bool

set_custom_source_timeline_start(attribute_value) bool

Set the start of the source timeline.

Parameters:

attribute_value (double)

Return type:

bool

set_custom_sub_path_prefix(prefix) bool

Sets the prefix that should be added to factory node SubPath custom attributes.

Parameters:

prefix (str)

Return type:

bool

set_custom_use_asset_type_sub_path_suffix(suffix) bool

Sets whether factory nodes for this import should have a suffix named after their asset category added to their custom sub path attribute.

Parameters:

suffix (bool)

Return type:

bool

set_custom_use_legacy_skeletal_mesh_bake_transform(attribute_value) bool

Set the SkeletalMesh factory to uses legacy bake transform behavior to create the skeletalmesh.

Parameters:

attribute_value (bool)

Return type:

bool

set_extra_information(name, value) bool

Set Extra Information that we want to show in the Config Panel (such as File Information).

Parameters:
Return type:

bool