From b1a061fe474aa8f14dcfc9a74724f9a75d98abf3 Mon Sep 17 00:00:00 2001 From: Kijai <40791699+kijai@users.noreply.github.com> Date: Mon, 6 May 2024 16:44:35 +0300 Subject: [PATCH] continue later --- nodes/curve_nodes.py | 2 +- web/js/spline_editor.js | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/nodes/curve_nodes.py b/nodes/curve_nodes.py index ff6bc6b..707e408 100644 --- a/nodes/curve_nodes.py +++ b/nodes/curve_nodes.py @@ -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]): diff --git a/web/js/spline_editor.js b/web/js/spline_editor.js index 57c18a2..cb26442 100644 --- a/web/js/spline_editor.js +++ b/web/js/spline_editor.js @@ -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)