You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 };
}
The text was updated successfully, but these errors were encountered:
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 };
}
The text was updated successfully, but these errors were encountered: