Re: Export HTML5 plug-in

by boe666 » Wed Nov 28, 2018 1:28 pm

You should call the method [font=courier new]getClosestItemAt[/font] available in HomeComponent3D class in a listener added to the displayed canvas. If the returned object is an instance of HomePieceOfFurniture, then you may call its [font=courier new]getCatalogId[/font] method to get its catalog ID and do whatever you want.
The [font=courier new]HomeComponent3D[/font] instance is returned by the getComponent3D method available on the object returned by viewHome function.
I tried to do it according this post but it is not working at all. I have access to Object'd list, to every variables and function, i studdy the JS API but i can't select any items my mouse, even set getHome().setSelectedItems(["number"]) do nothing (camera not move). I have set setAerialViewCenteredOnSelectionEnabled(true).

Can somebody help me to understand what do I wrong ?