Forum

Communications between the logic nodes and the JS code

04 November 2015 03:25
Hi,

We are exploring the possibilities of the new logic nodes system (thanks for this awesome improvement). It is indeed quite tempting to use it in our project for the menus instead of icons in HTML+CSS+JS (cf. the "Furnishing a room" example).

Albeit it is wonderful for simple tasks, to trigger animations and such, we would like for instance to pass the result of a "Conditional Jump" node to the usual JS code written for the rest of the project.

Is there a dedicated way to do that or even a little trick ?
04 November 2015 08:25
Albeit it is wonderful for simple tasks, to trigger animations and such, we would like for instance to pass the result of a "Conditional Jump" node to the usual JS code written for the rest of the project.

Is there a dedicated way to do that or even a little trick ?
Well, to my knowledge there is no such possibility yet. For now I can only suggest something very hacky. Such as tracking a shader node parameter in JavaScript while setting this parameter in the logic editor with Set Shader Node Param.
Thanks for pointing that out.
The Founder | Twitter | Facebook | Linkedin
 
Please register or log in to leave a reply.