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_allow_scene_root_as_joint() bool or None

Gets, if the skeleton processing should accept a SceneRoot as a joint (root node), for when import is forced as Skeletal.

Returns:

allow_scene_root_as_joint (bool):

Return type:

bool or None

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_nanite_triangle_threshold() int64 or None

Gets the minimum triangle count a mesh needs to have in order to get Nanite enabled for it when bBuildNanite is true on the static mesh pipeline.

Returns:

min_num_triangles (int64):

Return type:

int64 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_skeletal_mesh_front_axis() uint8 or None

Get the value of the front axis to be used when importing skeletal meshes.

Returns:

attribute_value (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, node_container) None

Initialize the base data of the node. Adds it to NodeContainer.

Parameters:
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_allow_scene_root_as_joint(allow_scene_root_as_joint) bool

Sets, if the skeleton processing should accept a SceneRoot as a joint (root node), for when import is forced as Skeletal.

Parameters:

allow_scene_root_as_joint (bool)

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_nanite_triangle_threshold(min_num_triangles) bool

Sets the minimum triangle count a mesh needs to have in order to get Nanite enabled for it when bBuildNanite is true on the static mesh pipeline.

Parameters:

min_num_triangles (int64)

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_skeletal_mesh_front_axis(attribute_value) bool

Set the value of the front axis to be used when importing skeletal meshes.

Parameters:

attribute_value (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