Logic Nodes and Javascript

24 February 2018 19:37
Hi There,

I've run into a bit of a snag trying to work between Blend4Web's Logic Nodes and Javascript. I've managed to link the 2 successfully using the JSCallback node and define a variable within Javascript that triggers a Switch, however, I'm having trouble changing/updating that variable with an OnClick event. I'm very new to coding, so I can't tell if it's the result of my node setup or something within Javascript.

I'll attach examples to this post:

Thanks in advance if you can help me!
24 February 2018 23:22
*I just discovered the issue*

I moved the function I was calling from the linked JavaScript file over to the HTML page and it fixed everything
Please register or log in to leave a reply.