|
Sweet Home 3D Forum » List all forums » » Forum: New versions » » » Thread: Sweet Home 3D 6.5 » » » » Post: Re: Sweet Home 3D 6.5 |
Print at Dec 19, 2025, 6:51:51 AM |
| Posted by enkonyito at Mar 17, 2021, 2:43:41 AM |
|
Re: Sweet Home 3D 6.5 <technical answer> Most of the properties that could be only retrieved from an instance of HomePieceOfFurniture or a subclass can now be modified too with their new setters (setModel, setPlanIcon, setInformation...). Of course, I also added some listeners in the plan and 3D view components to update them when a call to these methods is done, but there's no user interface to call them yet, even if I checked they correctly work. Some of these methods were added for modifications I had to make to EvidenceMarkerGenerator plug-in. The easiest way to test them is probably with the JavaScript console in a browser running with a SweetHome3DJS example. For example, the following JavaScript instruction will replace the model of the piece selected in the plan by the model of the piece selected in the furniture catalog: application.getHomes()[0].getSelectedItems()[0].setModel(If I understand correctly, these new setters currently only allow permutations as in your example or the Paste style function. For light sources, have you also planned to add setters to modify the color for example? ---------------------------------------- EnkoNyito |
|
|
Current timezone is GMT Dec 19, 2025, 6:51:51 AM |