Skip to content
Jigwright
HullForge docs

Connect Material Nodes

Wire one expression's output into another expression's input, or into one of the material's own outputs. REFUSES A CYCLE, which the engine does not: the translator walks the graph depth first, so a loop is a compile that never returns rather than an error.

hf_connect_material_nodesWrite

Arguments

NameTypeDescription
fromreqstringSource node name, as hf_list_material_nodes reports it.
materialreqstring
forceboolean
= false
Edit even when the asset cannot currently be saved - for example when revision control is configured but disconnected. The change will be made in memory and WILL BE LOST unless the underlying problem is fixed before saving. Only pass this if you intend to discard the work or fix the connection first.
from_outputstringOutput pin name or index. The first output if omitted.
propertystringA material output instead of a node: BaseColor, Roughness, Normal, EmissiveColor and the rest.
tostringDestination node name. Give this OR "property", not both.
to_inputstringInput pin name or index on the destination node. The first input if omitted.

Nearby in Materials:

All 28 tools in Materials — 19 more not listed here.