v0.9, add node random line from input

This commit is contained in:
justumen
2024-08-12 11:55:41 +02:00
parent a81380a651
commit 81166137fb
7 changed files with 66 additions and 7 deletions

View File

@@ -0,0 +1,14 @@
import { app } from "../../../scripts/app.js";
app.registerExtension({
name: "Bjornulf.RandomLineFromInput",
async nodeCreated(node) {
if (node.comfyClass === "Bjornulf_RandomLineFromInput") {
// Set seed widget to hidden input
const seedWidget = node.widgets.find(w => w.name === "seed");
if (seedWidget) {
seedWidget.type = "HIDDEN";
}
}
}
});