Studio Yotsuba
Back to Node List

Patch Toggle

patch_toggle

Enable or disable a patch document without deleting it

Reviewed
Guide available

Input Ports

NameTypeDescription
Patch
patch
PixelPatch
Patch document to gate
Enabled
enabled
Bool
Optional runtime enable flag

Output Ports

NameTypeDescription
Patch
patch
PixelPatch
Forwarded or disabled patch document

Parameters

NameTypeDefaultRangeDescription / Options
Enabled
enabled
Bool
true—

Default enable state when the input is not connected

What is it for?

  • Comparing an image with and without manual corrections
  • Temporarily disabling a patch
  • Switching a patch with a Bool condition

Overview

Turns a patch ON or OFF without deleting it. Compare results with and without manual corrections or apply a correction conditionally while retaining the patch itself.

Usage tips

  • Think of it as gate for patches. OFF emits an empty patch, meaning no correction.
  • It is useful for review: each time you adjust generation, toggle the patch to reassess whether the correction is still needed.
  • Drive enabled with a Bool wire for conditional application, such as changing the correction by seed.

Related nodes

  • pixel_patch — supplies the patch to toggle
  • patch_apply — applies it downstream
  • gate — the equivalent concept for general values
  • compare — builds the condition for enabled

Notes

  • A connected enabled input takes priority over the parameter.
  • OFF does not delete the patch; it emits an empty patch with the same target dimensions.
  • If patch is unconnected, the node emits an empty patch, so connecting it directly to PatchApply is safe.

Examples

  1. Pixel Patch.patch -> PatchToggle -> PatchApply
    • Compare the result with and without the manual correction immediately.
  2. Compare -> PatchToggle.enabled
    • Enable the patch conditionally.
Back to Node List