Print at Jul 18, 2019 10:16:02 PM

Posted by omrico at Jan 4, 2018 7:06:36 PM
Re: Export to HTML5 plug-in
Selecting an object of the displayed home should have the same effect as in Sweet Home 3D. From the HomePreviewComponent returned by viewHome, you'll be able to access to the displayed Home instance, which lets you access to all its objects and select the ones you want with its setSelectedItems method.

I tried what you said but didn't succeed with changing the camera. I fetched all the selected items via
getSelectableViewableItems()
function and randomly chose an object from the array.
Then used
setSelectedItems(selectedItems)
function but the camera didn't change the angle and position. What am I missing here?
Thank you.