EvaluationContext
Helper API passed to calculators so they can read upstream values without knowing graph details.
Type Parameters
ValueType
ValueType
Defines the type of the node's output values.
Properties
input()
input: (
terminalId?) =>ValueType
Reads the value connected to one input terminal. Omit terminalId or pass DEFAULT_TERMINAL for direct node-body connections. Otherwise terminalId is assumed to map to a port ID on the node.
Parameters
terminalId?
string
Returns
ValueType
inputs()
inputs: (
terminalIds?) =>ValueType[]
Reads named input terminals in order. When omitted, reads every edge connected directly to the node body, in edge order.
Parameters
terminalIds?
string[]
Returns
ValueType[]