unreal.InterchangeMaterialFactoryNode

class unreal.InterchangeMaterialFactoryNode(outer=None, name='None')

Bases: unreal.InterchangeBaseNode

Interchange Material Factory Node

C++ Source:

  • Plugin: Interchange

  • Module: InterchangeNodes

  • File: InterchangeMaterialFactoryNode.h

get_custom_blend_mode() uint8 or None

Return false if the Attribute was not set previously.

Returns

attribute_value (uint8):

Return type

uint8 or None

get_custom_material_usage() uint8 or None

Return false if the Attribute was not set previously.

Returns

attribute_value (uint8):

Return type

uint8 or None

get_custom_translated_material_node_uid() str or None

Get the translated texture node unique ID.

Returns

attribute_value (str):

Return type

str or None

get_object_class()

Get the class this node want to create

Return type

type(Class)

get_texture_dependecies_count() int32

This function allow to retrieve the number of Texture dependencies for this object.

Return type

int32

get_texture_dependencies()

This function allow to retrieve the Texture dependency for this object.

Returns

out_dependencies (Array(str)):

Return type

Array(str)

get_texture_dependency(index) str

This function allow to retrieve one Texture dependency for this object.

Parameters

index (int32) –

Returns

out_dependency (str):

Return type

str

initialize_material_node(unique_id, display_label, asset_class) None

Initialize node data param:: UniqueID - The uniqueId for this node

Parameters
  • unique_id (str) –

  • display_label (str) – The name of the node

  • asset_class (str) – The class the material factory will create for this node.

remove_texture_dependency_uid(dependency_uid) bool

Remove one Texture dependency from this object.

Parameters

dependency_uid (str) –

Return type

bool

set_custom_blend_mode(attribute_value, add_apply_delegate=True) bool

Set Custom Blend Mode

Parameters
  • attribute_value (uint8) –

  • add_apply_delegate (bool) –

Return type

bool

set_custom_material_usage(attribute_value, add_apply_delegate=True) bool

Set Custom Material Usage

Parameters
  • attribute_value (uint8) –

  • add_apply_delegate (bool) –

Return type

bool

set_custom_translated_material_node_uid(attribute_value) bool

Set the translated texture node unique ID. This is the reference to the node that was create by the translator and this node is needed to get the texture payload.

Parameters

attribute_value (str) –

Return type

bool

set_texture_dependency_uid(dependency_uid) bool

Add one Texture dependency to this object.

Parameters

dependency_uid (str) –

Return type

bool