Yotsuba Games
Back to Node List

Patch Toggle

patch_toggle

Enable or disable a patch document without deleting it

Reviewed
Guide available
The node name and summary are available in English. Port, parameter, and article details are currently shown in Japanese.

Input Ports

NameTypeDescription
ใƒ‘ใƒƒใƒ
patch
PixelPatch
ๅˆ‡ใ‚Šๆ›ฟใˆใ‚‹ใƒ‘ใƒƒใƒ document
ๆœ‰ๅŠน
enabled
Bool
ๅฎŸ่กŒๆ™‚ใฎๆœ‰ๅŠนใƒ•ใƒฉใ‚ฐ๏ผˆใ‚ชใƒ—ใ‚ทใƒงใƒณ๏ผ‰

Output Ports

NameTypeDescription
ใƒ‘ใƒƒใƒ
patch
PixelPatch
้€š้ŽใพใŸใฏ็„กๅŠนๅŒ–ใ•ใ‚ŒใŸใƒ‘ใƒƒใƒ document

Parameters

NameTypeDefaultRangeDescription / Options
ๆœ‰ๅŠน
enabled
Bool
trueโ€”

ๅ…ฅๅŠ›ๆœชๆŽฅ็ถšๆ™‚ใฎๆ—ขๅฎšใฎๆœ‰ๅŠน็Šถๆ…‹

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
Patch Toggle โ€” PixPipeline Node Reference