Forum

User posts Konstantin Khomyakov
07 June 2016 11:04

Found a kind of Hack. It works if i SUCCESSFULLY click on a background object or the main character, not the trigger widget (that really should be a miss in my logic.).
Could you please attach a screenshot of your logic tree or blend file
Blend4Web Team - developer
Twitter
LinkedIn
07 June 2016 10:48
Здравствуйте!

Давайте разбираться, что за ошибка такая заявилась

Уточним еще раз ваш порядок действий:
- Все объекты в одном файле. Написали нодовую логику, выбирая объекты
- Объект экспортируем/копируем(??) в новый файл.
- Удаляем объект из исходного файла (через дупли группу??)
- Линкуем объект из внешнего файла
- Получаем ошибку при экспорте Х_Х

Все так?
Blend4Web Team - developer
Twitter
LinkedIn
07 June 2016 10:35

OR is there supposed to be some logical node added to do this separately?
Hello!

There is a special logic node "Stop Timeline" in "Animation" section of logic nodes list
Blend4Web Team - developer
Twitter
LinkedIn
06 June 2016 18:57
Could you please attach exported project archive (https://www.blend4web.com/doc/en/project_manager.html#project-export)
So I can easily check your issue
Blend4Web Team - developer
Twitter
LinkedIn
06 June 2016 18:25

I think I don't know what does it mean "export to engine"…
In apps_dev, I make python3 project.py -p myproject compile

And I use .html in deploy/apps

Isn't it enough to "export to the engine" ?
Hello!

"compile" command doesn't export the scene. It is for engine compiling/updating (depends on the type of the project).
To export your blender scene you need to use:
python3 project.py -p myproject reexport

Besides you can check in the browser console if your cube is really selectable:
var obj = b4w.scenes.get_object_by_name("obj_name");
obj.render.selectable
Blend4Web Team - developer
Twitter
LinkedIn
01 June 2016 18:35
Glad I could help
Blend4Web Team - developer
Twitter
LinkedIn
01 June 2016 17:56
Hello!

This video from our recent conference may answer some of your questions
https://youtu.be/dWEHg5Yzcys?t=1113
You should use the append_custom_callback method from "logic_nodes" module, instead of creating manifolds.
https://www.blend4web.com/api_doc/module-logic_nodes.html#.append_custom_callback
It takes two parameters: id for your callback and callback function itself. In the node you need two specify id, which you use in this method's call.
Blend4Web Team - developer
Twitter
LinkedIn
24 May 2016 14:06

Is the API method the only way to create a click drag action to rotate objects like in the "Experience Curiosity" app or can it be done with the logic nodes?

Also if its not available will it make it into an upcoming release?
Hello!
For now there is no such functionality in the Logic Editor.
We have some plans to enlarge "Switch Select" node flexibility, but I can't say exactly when
Blend4Web Team - developer
Twitter
LinkedIn
19 May 2016 10:44

is there a way to do this same thing using logic nodes?
Hello!
For now there is no functionality to get the distance from camera to object using only logic nodes without coding. But you can do it with "JS Callback" node, which can use functions prepared in javascript part of your application (in this case function will be similiar to the one in Yuri's answer).

Scale can be changed via "Transform Object" node.
Blend4Web Team - developer
Twitter
LinkedIn
16 May 2016 10:35
I tried to get object inside mouse x and y coordinates
but it gives null value not the object, what can be the reson ?
Hello!
Please make sure that you've marked the object as "Selectable"
Blend4Web Team - developer
Twitter
LinkedIn