You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
497 B
22 lines
497 B
2 years ago
|
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",
|
||
|
};
|
||
|
},
|
||
|
});
|