论坛

由用户创建的信息 amiarun
11 February 2016 15:35
I see, that makes sense. Thank you so much
11 February 2016 13:21
Thanks for your replies
Did you dynamically load "selectedPlane"? If you use dynamic loading this topic helps you.
Yes, I just followed the furnishing the room tutorial.

I have attached the blend file from the furnishing the room tutorial. It has an object called 'spawner'. It works fine for their example but if I copy this object into my scene it doesn't pick up on it. Please let me know if you can find an answer.
11 February 2016 12:47
With reference to this:

get_object_by_name(name, data_idopt)

is it possible for me to get the name of the object from it's data ID?

Thanks :)

09 February 2016 15:52
Hi,

I'm very new here so forgive my lack of knowledge.

When I typed this in my javascript code:
m_scenes.hide_object(m_scenes.get_object_by_name("selectedPlane"));


This returns an error saying:

B4W ERROR: get object selectedPlane: not found.

Now there is 'selectedPlane' in my blend file. I'm probably overlooking the obvious but is there something I'm missing? Possibly in the blend file too? Thanks in advance
29 January 2016 15:30

If you still need it you can implement it yourself by iterating over all possible objects (returned by get_all_objects(), specify type here to limit search set) and compare their children with your original object.


What are the 'types' that I could use to limit the search?