Table of Contents

Struct NodeShape

Namespace
Ofs
Assembly
Ofs.Api.dll

A node's pin shape: the input and output pin names. Each array's length is that direction's pin count. Pin names double as labels (and, for scripts, injected locals). Construct with named pins, e.g. new NodeShape(inputs: ["a", "b"], outputs: ["mix"]).

public readonly struct NodeShape

Constructors

NodeShape(string[], string[])

Build a pin shape. Throws if the counts are out of range (≤16 inputs, 1..16 outputs) or if a name repeats within a direction (pin names double as link-target labels and injected script locals, so a direction's names must be distinct). The arrays are cloned, so the shape is fully immutable once built.

public NodeShape(string[] inputs, string[] outputs)

Parameters

inputs string[]
outputs string[]

Properties

Inputs

Input pin names; length 0..16.

public IReadOnlyList<string> Inputs { get; }

Property Value

IReadOnlyList<string>

Outputs

Output pin names; length 1..16.

public IReadOnlyList<string> Outputs { get; }

Property Value

IReadOnlyList<string>