|
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 16, 2025, 8:10:03 PM |
| Posted by Puybaret at Mar 14, 2021, 6:41:23 PM |
|
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(---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
|
|
Current timezone is GMT Dec 16, 2025, 8:10:03 PM |