Files
Bjornulf_custom_nodes/web/js/text_to_speech.js
justumen 002cf1220b 0.35
2024-09-16 16:10:59 +02:00

14 lines
424 B
JavaScript

import { app } from "../../../scripts/app.js";
app.registerExtension({
name: "Bjornulf.TextToSpeech",
async nodeCreated(node) {
if (node.comfyClass === "Bjornulf_TextToSpeech") {
// Set seed widget to hidden input
const seedWidget = node.widgets.find((w) => w.name === "seed");
if (seedWidget) {
seedWidget.type = "HIDDEN";
}
}
}
});