Director 2CS v0.21
"WhatDreamsCost" Director node modded for Ref sheets
This commit is contained in:
11290
js/ltx_director.js
11290
js/ltx_director.js
File diff suppressed because it is too large
Load Diff
@@ -1,12 +1,24 @@
|
||||
import { app } from "../../scripts/app.js";
|
||||
|
||||
// LTX Director Guide CS is a pure pass-through processor node.
|
||||
// All configuration (images, insert frames, strengths) comes from
|
||||
// the guide_data output of the LTX Director CS (Timeline) node.
|
||||
app.registerExtension({
|
||||
name: "Comfy.LTXDirectorGuideCS",
|
||||
async nodeCreated(node) {
|
||||
if (node.comfyClass !== "LTXDirectorGuideCS") return;
|
||||
// Nothing to initialize — the node has no configurable widgets.
|
||||
},
|
||||
});
|
||||
import { app } from "../../scripts/app.js";
|
||||
|
||||
// LTX Director Guide is a pure pass-through processor node.
|
||||
// All configuration (images, insert frames, strengths) comes from
|
||||
// the guide_data output of Prompt Relay Encode (Timeline).
|
||||
app.registerExtension({
|
||||
name: "Comfy.LTXDirectorGuideCS",
|
||||
async nodeCreated(node) {
|
||||
if (node.comfyClass !== "LTXDirectorGuideCS") return;
|
||||
|
||||
// Hide retake_mode widget on LiteGraph as it is dynamically auto-detected from the timeline data.
|
||||
const w = node.widgets?.find(x => x.name === "retake_mode");
|
||||
if (w) {
|
||||
w.hidden = true;
|
||||
if (!w.options) w.options = {};
|
||||
w.options.hidden = true;
|
||||
if (!window.LiteGraph || !window.LiteGraph.vueNodesMode) {
|
||||
w.computeSize = () => [0, -4];
|
||||
w.draw = () => { };
|
||||
}
|
||||
if (w.element) w.element.style.display = "none";
|
||||
}
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user