Edit Operation Presets (Legacy)
The action half of an edit instruction, pre-written and phrased right
- edit_op_prompt
The other half of the edit-instruction problem: once you've told the model what to edit, you still need to tell it how - and "make it prettier" is not how you phrase things for an instruction-editing model. Edit Operation Presets (Legacy) is the action shelf: a dropdown of pre-written edit operations, from INCREASE_DETAIL and FIX_ANATOMY to the full censorship kit (MOSAIC_CENSOR, BLACK_BAR_CENSOR, REMOVE_CENSORSHIP), plus a long line of body-mod and dress operations. Each one is a full instruction paragraph in the register editing models were trained on.
Mechanically: same lookup-and-escape design as every preset node in this pack. The dropdown maps to EDIT_OP_* template strings, escape_parentheses guards literal parens, and out comes a complete operation instruction - "Apply solid black bars to censor the targeted area… Keep unedited areas in focus. Ensure that lighting is accurate for the scene." Notice what those templates share: the operation plus the preservation constraints. That combination is the whole value; writing it by hand every time is exactly how you get the model to wander off and re-render the background.
The inputs that matter
- preset - the operation. This is the decision. There are a lot of them, and they're specific: anatomy fixes, detail tweaks, censorship ops, body-shape ops, dress-state ops, composition changes.
- escape_parentheses - off by default.
The output
edit_op_prompt - a STRING, the action half of an edit instruction. Combine it with an Edit Target Preset (target + operation is the classic pairing) and feed the result to your edit encoder. Order matters less than presence: the model wants to know both what and how.
Installing it
Part of silveroxides/ComfyUI-UtilsCollection. ComfyUI Manager → search ComfyUI-UtilsCollection → install → restart, or:
cd ComfyUI/custom_nodes
git clone https://github.com/silveroxides/ComfyUI-UtilsCollection
Restart after. Dependencies: opencv-python, typing-extensions. No downloads - templates live in the pack. "(Legacy)" marks the compat alias for the pack's canonical UC_EditOpPresets.
Where people get burned
An operation preset without a target leaves the model to guess what it's operating on. "Increase detail" on a scene with no focal subject is a coin flip about where the detail budget goes. And resist editing these templates down: the "keep pose / keep angle / keep unedited areas in focus" tail isn't decoration, it's the anti-drift insurance, and editing models drift the moment you strip it. One more: the body-shape and dress operations are a specific flavor of content, and they're right there in the dropdown - the preset shelf is opinionated, so if a dropdown option makes you uncomfortable, that's the pack, not a misclick.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| preset | COMBO | BLACK_BAR_CENSOR | 32 options: BLACK_BAR_CENSOR, CHANGE_COMPOSITION, DECENSOR_MOSAIC, DECREASE_DETAIL, DRESS_BIKINI, DRESS_CLOTHES, +26 |
| escape_parentheses | BOOLEAN | false | Prevents errors from parentheses left in the prompt. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| edit_op_prompt | STRING | — |