Print at Jan 21, 2026, 2:50:34 AM

Posted by DragonZ at Sep 18, 2025, 2:24:32 PM
Custom object properties support for SH3D furniture items
Hello everyone,

I am currently looking to adapt the Sweet Home 3D tool (and specifically focusing on the Online JavaScript conversion) to match our projects use case more accurately.

The main aspects I would like to adjust would be:
1. Adding additional fields that hold persistent data for furniture objects (HomePieceOfFurniture objects)
1a. Optionally these custom fields be able to support list objects assigned with a popup (perhaps similar to the texture selection popup)
2. Having this additional data be saved into and fetched from .sh3d files
3. Being able to have different "Modify furniture" popup panels based on the specific furniture type selected (currently bookcases for example will have the same list of properties as boxes, I would like these to have different properties available, at least in the UI)
4. Having clear getters and setters for these new properties that can be used when working with custom built plugins

I will mention that I've looked and adapted parts of this code for both the Java and the JavaScript versions, however, I do appear to have issues identifying the entire flow of event handlers (listeners/emitters) that would be called when modifying the properties of an object.



Thanks in advance for your feedback, advice, or instructions!

Best regards,

Dragos P.