unreal.InterchangeMaterialNode
¶
- class unreal.InterchangeMaterialNode(outer=None, name='None')¶
Bases:
unreal.InterchangeBaseNode
Interchange Material Node
C++ Source:
Plugin: Interchange
Module: InterchangeNodes
File: InterchangeMaterialNode.h
- add_scalar_parameter_data(parameter_name, scalar_data) None ¶
Add Scalar Parameter Data
- Parameters
parameter_name (InterchangeMaterialNodeParameterName) –
scalar_data (float) –
- add_texture_parameter_data(parameter_name, texture_uid, uv_set_index, scale_u, scale_v) None ¶
Add a texture parameter for the specified ParameterName. note: A parameter name can have only one of the 3 type of input set, the last input type set is the one that will be created.
- Parameters
parameter_name (InterchangeMaterialNodeParameterName) – The parameter we want to set the texture for.
texture_uid (str) – The texture node uniqueID that has the texture we want to set to the specified parameter
uv_set_index (int32) –
scale_u (float) –
scale_v (float) –
- add_vector_parameter_data(parameter_name, vector_data) None ¶
Add Vector Parameter Data
- Parameters
parameter_name (InterchangeMaterialNodeParameterName) –
vector_data (Vector) –
- get_scalar_parameter_data(parameter_name) float or None ¶
Get Scalar Parameter Data
- Parameters
parameter_name (InterchangeMaterialNodeParameterName) –
- Returns
out_scalar_data (float):
- Return type
float or None
- 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.
- 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
- get_texture_parameter_data(parameter_name) (out_texture_uid=str, out_uv_set_index=int32, out_scale_u=float, out_scale_v=float) or None ¶
Get Texture Parameter Data
- Parameters
parameter_name (InterchangeMaterialNodeParameterName) –
- Returns
out_texture_uid (str):
out_uv_set_index (int32):
out_scale_u (float):
out_scale_v (float):
- Return type
tuple or None
- get_vector_parameter_data(parameter_name) Vector or None ¶
Get Vector Parameter Data
- Parameters
parameter_name (InterchangeMaterialNodeParameterName) –
- Returns
out_vector_data (Vector):
- Return type
Vector or None