mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2026-04-01 04:56:59 +08:00
continue later
This commit is contained in:
parent
2c262f722b
commit
b1a061fe47
@ -899,7 +899,7 @@ CreateInstanceDiffusionTracking -node.
|
||||
colormap = cm.get_cmap('rainbow', len(tracking))
|
||||
if draw_text:
|
||||
#font = ImageFont.load_default()
|
||||
font = ImageFont.truetype("arial.ttf", font_size)
|
||||
font = ImageFont.truetype(font, font_size)
|
||||
|
||||
# Iterate over each image in the batch
|
||||
for i in range(image.shape[0]):
|
||||
|
||||
@ -197,7 +197,6 @@ app.registerExtension({
|
||||
console.log("INPUT CONNECTED")
|
||||
console.log(this.editor)
|
||||
this.editor.syncEditors(this);
|
||||
//this.splineEditorWidget.syncEditors();
|
||||
|
||||
});
|
||||
|
||||
@ -626,8 +625,10 @@ class SplineEditor {
|
||||
}
|
||||
syncEditors(context) {
|
||||
console.log(context)
|
||||
let linkedInputEditor = context.getInputNode(0)
|
||||
let linkedInputEditor = context.getInputLink(0)
|
||||
let linkedOutputEditor = context.getOutputNodes(4)
|
||||
console.log("linkedInputEditor: ",linkedInputEditor)
|
||||
console.log("linkedOutputEditor: ",linkedOutputEditor)
|
||||
let extraLineLayer = null
|
||||
if (linkedInputEditor != null) {
|
||||
let linkedInputPointsWidget = linkedInputEditor.widgets.find(w => w.name === "points_store")
|
||||
@ -658,8 +659,6 @@ class SplineEditor {
|
||||
}
|
||||
}
|
||||
|
||||
let linkedOutputEditor = this.context.getOutputNodes(4)
|
||||
|
||||
if (linkedOutputEditor != null) {
|
||||
let linkedOutputPointsWidget = linkedOutputEditor[0].widgets.find(w => w.name === "points_store")
|
||||
let linkedOutputEditorCoords = JSON.parse(linkedOutputPointsWidget.value)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user