mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2026-06-06 13:17:57 +08:00
Update spline_editor.js
This commit is contained in:
parent
eb2d3762a5
commit
a93b8687ac
@ -366,22 +366,8 @@ class SplineEditor {
|
|||||||
|
|
||||||
let linkedInputEditorPointsToSample = null
|
let linkedInputEditorPointsToSample = null
|
||||||
let linkedOutputEditorPointsToSample = null
|
let linkedOutputEditorPointsToSample = null
|
||||||
let linkedInputEditor = context.getInputNode(0)
|
|
||||||
let linkedOutputEditor = context.getOutputNodes(4)
|
|
||||||
|
|
||||||
if (linkedOutputEditor != null) {
|
|
||||||
linkedOutputEditorPointsToSample = linkedOutputEditor[0].widgets.find(w => w.name === "points_to_sample")
|
|
||||||
linkedOutputEditorPointsToSample.value = pointsWidget.value
|
|
||||||
console.log(linkedOutputEditorPointsToSample)
|
|
||||||
}
|
|
||||||
if (linkedInputEditor != null) {
|
|
||||||
linkedInputEditorPointsToSample = linkedInputEditor.widgets.find(w => w.name === "points_to_sample").value
|
|
||||||
pointsWidget.value = linkedInputEditorPointsToSample
|
|
||||||
console.log(linkedInputEditorPointsToSample)
|
|
||||||
}else {
|
|
||||||
var points_to_sample = pointsWidget.value
|
|
||||||
}
|
|
||||||
|
|
||||||
|
var points_to_sample = pointsWidget.value
|
||||||
var interpolation = interpolationWidget.value
|
var interpolation = interpolationWidget.value
|
||||||
var tension = tensionWidget.value
|
var tension = tensionWidget.value
|
||||||
var rangeMin = minValueWidget.value
|
var rangeMin = minValueWidget.value
|
||||||
@ -415,10 +401,12 @@ class SplineEditor {
|
|||||||
if (linkedOutputEditor != null) {
|
if (linkedOutputEditor != null) {
|
||||||
linkedOutputEditorPointsToSample = linkedOutputEditor[0].widgets.find(w => w.name === "points_to_sample")
|
linkedOutputEditorPointsToSample = linkedOutputEditor[0].widgets.find(w => w.name === "points_to_sample")
|
||||||
linkedOutputEditorPointsToSample.value = pointsWidget.value
|
linkedOutputEditorPointsToSample.value = pointsWidget.value
|
||||||
|
points_to_sample = pointsWidget.value
|
||||||
}
|
}
|
||||||
if (linkedInputEditor != null) {
|
if (linkedInputEditor != null) {
|
||||||
linkedInputEditorPointsToSample = linkedInputEditor.widgets.find(w => w.name === "points_to_sample")
|
linkedInputEditorPointsToSample = linkedInputEditor.widgets.find(w => w.name === "points_to_sample")
|
||||||
linkedInputEditorPointsToSample.value = pointsWidget.value
|
linkedInputEditorPointsToSample.value = pointsWidget.value
|
||||||
|
points_to_sample = pointsWidget.value
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
points_to_sample = pointsWidget.value
|
points_to_sample = pointsWidget.value
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user