mirror of
https://github.com/justUmen/Bjornulf_custom_nodes.git
synced 2026-03-21 20:52:11 -03:00
v0.11
This commit is contained in:
19
web/js/random_seed_with_text.js
Normal file
19
web/js/random_seed_with_text.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import { app } from "../../../scripts/app.js";
|
||||
|
||||
app.registerExtension({
|
||||
name: "Bjornulf.TextToStringAndSeed",
|
||||
async nodeCreated(node) {
|
||||
if (node.comfyClass === "Bjornulf_TextToStringAndSeed") {
|
||||
// Set seed widget to hidden input
|
||||
const seedWidget = node.widgets.find(w => w.name === "seed");
|
||||
if (seedWidget) {
|
||||
seedWidget.type = "HIDDEN";
|
||||
}
|
||||
// Set seed widget to hidden input
|
||||
const controlWidget = node.widgets.find(w => w.name === "control_after_generate");
|
||||
if (controlWidget) {
|
||||
controlWidget.type = "HIDDEN";
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user