|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: How to group furniture using a plug-in? » » » » Post: Re: How to group furniture using a plug-in? |
Print at Dec 15, 2025, 11:42:53 PM |
| Posted by enkonyito at Jan 3, 2021, 2:28:18 AM |
|
Re: How to group furniture using a plug-in? What other capabilities would you expect? I thought it would be possible to create an empty group and then add the furniture to it separately.Look at FurnitureController class to understand how a furniture group is created and handled. It was the addFurnitureToGroup method that caused me problems because it is necessary to have a list of furniture and a group of furniture as a parameter.The difficult thing is probably to allow undo / redo on groups, but maybe you won't need that? As it is to add new light sources in the plan, the undo/redo function is not negligible.Even though it's not very intuitive, I was able to work around the issues by using the methods provided by the FurnitureController class. getHomeController().getPlanController().setSelectedLevel(lightLevel);---------------------------------------- EnkoNyito |
|
|
Current timezone is GMT Dec 15, 2025, 11:42:53 PM |