Gate
Passes its input through while open, and empties or holds its output while closed.
Outputs
| Name | Type | Description |
|---|---|---|
| Output | [Data Type] | The input while the gate is open. |
Inputs
| Name | Type | Description |
|---|---|---|
| Input | [Data Type] | What is passed through while the gate is open. |
Parameters
| Name | Type | Description |
|---|---|---|
| Data Type | Enum | What the input and the output carry, chosen from all data types ZigZag knows. Changing it removes the connections of the input and the output. |
| Open | Bool | Whether the input is passed through. |
| When Closed | Enum | What the output carries while the gate is closed.Choices: Clear, Hold Last |
The Gate operator passes its input through while it is open and holds it back while it is closed. Use it to switch part of a graph off, to freeze a picture, or to take snapshots.
In Clear mode, the output is empty while the gate is closed, and so is everything after it. In Hold Last mode, the output keeps the last thing that came through, so everything after the gate freezes. A held texture stays in memory for as long as it is held.
A trigger connected to Open opens the gate for one frame. In Hold Last mode, every trigger then takes a snapshot of the input and holds it until the next one, a sample and hold for any kind of data. In Clear mode, every trigger lets a single frame through.
See also Switch, Fallback, Sample and Hold.
Keywords: hold, freeze, latch, sample and hold, snapshot, mute, bypass, enable, block