22 January 2017 19:42
Hi,
In my setup I have empties (anchors) parented to objects.
When trying to select a specific object with m_scenes.pick_object(x, y); in a mouseup event listener the empties seem to get in the way, preventing most of the time clicks which should hit the object.
Since object properties in blender for an empty / or anchor don't include the section "Selection and Outlining" I've run out of options trying to get around this problem. Is it a desired behavior that empties get selected when by m_scenes.pick_object(x, y); ?
I tried to animate the empties out of the way with m_transform.set_translation(obj, x, y, z); but this way they are losing the parenting and the anchors won't stick to their specific objects later on.
Since the project is on a really tight schedule I haven't been able to assemble an example, if required I can try to put one together a.s.a.p.
I hope you can point me a solution to this problem.
Thanks,
Thomas
P.S. The current project is build on Blend4Web 16.10. Since most of the coding was done with this library, I avoided to upgrade to the latest version. If there are some changes concerning this problem in 16.12.1 I could try to upgrade the application.
In my setup I have empties (anchors) parented to objects.
When trying to select a specific object with m_scenes.pick_object(x, y); in a mouseup event listener the empties seem to get in the way, preventing most of the time clicks which should hit the object.
Since object properties in blender for an empty / or anchor don't include the section "Selection and Outlining" I've run out of options trying to get around this problem. Is it a desired behavior that empties get selected when by m_scenes.pick_object(x, y); ?
I tried to animate the empties out of the way with m_transform.set_translation(obj, x, y, z); but this way they are losing the parenting and the anchors won't stick to their specific objects later on.
Since the project is on a really tight schedule I haven't been able to assemble an example, if required I can try to put one together a.s.a.p.
I hope you can point me a solution to this problem.
Thanks,
Thomas
P.S. The current project is build on Blend4Web 16.10. Since most of the coding was done with this library, I avoided to upgrade to the latest version. If there are some changes concerning this problem in 16.12.1 I could try to upgrade the application.
Thomas Fabini
IM|S Intelligent Media Systems AG
IM|S Intelligent Media Systems AG