This commit is contained in:
justumen
2024-11-02 18:41:13 +01:00
parent c9e4ad2e68
commit 74f801d62a
24 changed files with 1672 additions and 1 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";
}
}
}
});