mirror of
https://github.com/justUmen/Bjornulf_custom_nodes.git
synced 2026-03-21 12:42:11 -03:00
15 lines
439 B
Plaintext
15 lines
439 B
Plaintext
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";
|
|
}
|
|
}
|
|
}
|
|
});
|