Studio Yotsuba
Back to Node List

Gate

gate

Turns an upstream chain on or off. While off, downstream nodes behave as if this line were unconnected. Promote Enabled to drive blinking with a waveform.

Reviewed
Guide available

Input Ports

NameTypeDescription
Input
input
Image
Required
Value from the upstream chain

Output Ports

NameTypeDescription
Output
output
Image
Input value while Enabled is on; no value while off

Parameters

NameTypeDefaultRangeDescription / Options
Value Type
value_type
Enum
Image—

Choose which type of value this gate should pass through

  • NumberNumber
    Pass Number values through this node
  • FloatFloat
    Pass Float values through this node
  • IntInt
    Pass Int values through this node
  • BoolBool
    Pass Bool values through this node
  • ColorColor
    Pass Color values through this node
  • TextText
    Pass Text values through this node
  • ImageImage
    Pass Image values through this node
  • PathPath
    Pass Path values through this node
  • PixelLinePixelLine
    Pass PixelLine values through this node
  • Vec2Vec2
    Pass Vec2 values through this node
  • Vec3Vec3
    Pass Vec3 values through this node
  • OklchAdjustOklchAdjust
    Pass OklchAdjust values through this node
  • PalettePalette
    Pass Palette values through this node
  • ListList
    Pass List values through this node
  • MapMap
    Pass Map values through this node
  • TextLayoutTextLayout
    Pass TextLayout values through this node
  • PixelPatchPixelPatch
    Pass PixelPatch values through this node
  • RecordedLayerRecordedLayer
    Pass RecordedLayer values through this node
  • AnimationClipAnimationClip
    Pass AnimationClip values through this node
  • AsepriteFileAsepriteFile
    Pass AsepriteFile values through this node
  • RuleGridSpecRuleGridSpec
    Pass RuleGridSpec values through this node
  • RuleTileSetRuleTileSet
    Pass RuleTileSet values through this node
  • RuleTileAssetRuleTileAsset
    Pass RuleTileAsset values through this node
  • RuleSetRuleSet
    Pass RuleSet values through this node
  • RuleCanvasRuleCanvas
    Pass RuleCanvas values through this node
  • RuleResolvedRuleResolved
    Pass RuleResolved values through this node
  • RuleTileAtlasRuleTileAtlas
    Pass RuleTileAtlas values through this node
  • NineSliceNineSlice
    Pass NineSlice values through this node
  • FxState2DFxState2D
    Pass FxState2D values through this node
  • SpriteSheetSpriteSheet
    Pass SpriteSheet values through this node
  • VariantSnapshotVariantSnapshot
    Pass VariantSnapshot values through this node
  • VariantRecipeVariantRecipe
    Pass VariantRecipe values through this node
  • VariantRecordVariantRecord
    Pass VariantRecord values through this node
  • IsoItemIsoItem
    Pass IsoItem values through this node
  • IsoSceneIsoScene
    Pass IsoScene values through this node
  • IsoWorldIsoWorld
    Pass IsoWorld values through this node
  • TileAssetTileAsset
    Pass TileAsset values through this node
  • TilePaletteTilePalette
    Pass TilePalette values through this node
  • TileCanvasTileCanvas
    Pass TileCanvas values through this node
  • TileResolvedTileResolved
    Pass TileResolved values through this node
  • AnyAny
    Advanced: allow any value type. Downstream nodes may fail if the value type does not match what they expect.
Enabled
enabled
Bool
true—

Pass the input while on. Promote this parameter to drive blinking with a waveform.

Overview

A wiring "switch" or circuit breaker. When turned off, it makes the downstream end behave exactly as if that wire were unconnected. Use it to disable an effect temporarily or to create blinking driven by a waveform.

Usage tips

  • It is convenient for comparisons while working. Insert it midway through an effect chain and toggle enabled to compare the processing on and off with one click.
  • Promote enabled to an input pin 📌 and connect motion (Blink) + compare to make a layer disappear and reappear at regular intervals.
  • Unlike switch, which selects A or B and always outputs something, Gate either passes or stops a value and treats a stopped value as unconnected. Use Switch when you need a fallback value.

Common pitfalls

  • Turning it off causes a downstream error: stopping a wire connected to a required downstream input intentionally produces an unconnected-input error. Use switch when you need a different value while off.

Related nodes

  • switch — choose between two values instead of stopping the connection
  • compare / motion — create a condition that drives blinking
  • expression_bool — control on/off state with a compound condition
Back to Node List