Add Material Node
Add an expression node to a material graph. The node is created wired to NOTHING, which is a graph that compiles and a node that does not exist as far as the shader is concerned until it is connected.
hf_add_material_nodeWriteArguments
| Name | Type | Description |
|---|---|---|
materialreq | string | |
node_classreq | string | Expression class. The MaterialExpression prefix and a leading U are both optional: Constant, TextureSample, ScalarParameter, Multiply, Add, LinearInterpolate. |
force | boolean = 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. |
x | integer = 0 | Editor graph position. Cosmetic, and worth setting: nodes added at the same spot stack invisibly. |
y | integer = 0 |
Related tools
Nearby in Materials:
- Add Material Function Call
- Add Material Parameter
- Audit Materials
- Connect Material Nodes
- Copy Material Parameters
- Create Material
- Create Material Function
- Create Parameter Collection
All 28 tools in Materials — 19 more not listed here.