Forum

User posts Juani
29 October 2017 13:01
Hello, can we see in some place how to use the new nodes or see what else has been implemented in the API ?. Is there any explanation out there or do we wait for the User Manual to be updated?
25 October 2017 20:48
Hi stewet, I use version 17.8, I leave a screenshot with the error that gives me the console.
Thank you
24 October 2017 21:36
I'm sorry, stewet, this code does not work, the method (get_all_scenes) does not exist, there is (get_scenes ()), this method is already a list, it could be accessed by name or by index, I tried it with a loop but it does not work.
Regards.


P.S. I'm not a programmer, I'm an amateur, it's my hobby.
24 October 2017 20:58
print.js:74 B4W ERROR: No active scene available

util.js:2101 Uncaught engine panic:
The engine tried to perform an invalid operation and halted.
Please copy the console contents above and submit it to the Blend4Web forum at
23 October 2017 18:33
Thank you very much for answering.
Yes stewet, the method you propose and in this way

var m_scenes = require("scenes");
               var listScenes = m_scenes.get_scenes();
               m_scenes.set_active(listScenes[1]) 


I can not get it to work, just load the first scene.
22 October 2017 19:38
Reply to post of user Dmitry Marusin
We believe that both visual scripting and traditional coding can co-exist. Different kinds of users have different requirements. JavaScript could be too difficult for a, let’s say, a 3D modeler but he/she could manage to employ visual scripting to implement desired interactivity.

Totally agree with Dmitry, b4w + javascript would be only for programmers, with logical nodes is for everyone. It is very similar to BGE, with logic bricks you can make a game with limitations, with python the possibilities are endless.
21 October 2017 10:23
Good, I can not find a way to change the scene, I do not know if it can be done.
Thank you
21 October 2017 10:20
Thank you very much Will.
14 October 2017 00:36
Hello A.shteiwi , the logical nodes are correct, they do not run because you have the checkbox Run From Script turned on, turn it off.
Run From Script is used to run Entry Point from a script via API.
Regards.
02 October 2017 23:01
Hello, try to match the empty (anchor) to the desired bone in Pose Mode / Bone.