comfyanonymous
2 years ago
2 changed files with 24 additions and 0 deletions
@ -0,0 +1,21 @@
|
||||
import { app } from "/scripts/app.js"; |
||||
|
||||
// Adds defaults for quickly adding nodes with middle click on the input/output
|
||||
|
||||
app.registerExtension({ |
||||
name: "Comfy.SlotDefaults", |
||||
init() { |
||||
LiteGraph.middle_click_slot_add_default_node = true; |
||||
LiteGraph.slot_types_default_in = { |
||||
MODEL: "CheckpointLoaderSimple", |
||||
LATENT: "EmptyLatentImage", |
||||
VAE: "VAELoader", |
||||
}; |
||||
|
||||
LiteGraph.slot_types_default_out = { |
||||
LATENT: "VAEDecode", |
||||
IMAGE: "SaveImage", |
||||
CLIP: "CLIPTextEncode", |
||||
}; |
||||
}, |
||||
}); |
Loading…
Reference in new issue