Skip to content
Jigwright
HullForge docs

Create Material Function

Create a Material Function. A new function has NO INPUTS AND NO OUTPUTS, which means a call node for it has no pins and it cannot be used for anything until FunctionInput and FunctionOutput nodes are added to it.

hf_create_material_functionWrite

Arguments

NameTypeDescription
destinationreqstring
descriptionstringShown in the palette and as the call node's tooltip.
expose_to_libraryboolean
= true
Whether it appears in the material editor palette. A function that is not exposed can still be called by reference.
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.

Nearby in Materials:

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