Hi I am using V2 (Beta/Preview). is there a way of changing the the colour of the SVG Wire that connected 2 nodes when the calculate function runs. like for example an if node
calculate(inputs) {
let result = 0;
if(inputs.operation == "True")
{
this.input.input1.setWireColour("yellow"); <== idea
this.input.input2.setWireColour("white"); <== idea
result = inputs.input1;
} else {
this.input.input1.setWireColour("white"); <== idea
this.input.input2.setWireColour("yellow"); <== idea
result = inputs.input2;
}
return { result };
}
Hi I am using V2 (Beta/Preview). is there a way of changing the the colour of the SVG Wire that connected 2 nodes when the calculate function runs. like for example an if node
calculate(inputs) { let result = 0; if(inputs.operation == "True") { this.input.input1.setWireColour("yellow"); <== idea this.input.input2.setWireColour("white"); <== idea result = inputs.input1; } else { this.input.input1.setWireColour("white"); <== idea this.input.input2.setWireColour("yellow"); <== idea result = inputs.input2; } return { result }; }