|
Sweet Home 3D Forum » List all forums » » Forum: Features use and tips » » » Thread: How to change ID of home objects |
|
| Print at Dec 21, 2025, 4:21:09 AM | View all posts in this thread on one page |
| Posted by david4502 at Mar 11, 2021, 12:12:12 AM |
|
How to change ID of home objects The release notes for version 6.4 contain this interesting item: * Added IDs to home objects which may be modified. I have a use for this feature. I am writing a script to convert SH3D files to X3D files. I would like to set the ID on certain elements so that event handlers can be attached. I have checked and the home objects in the SH3D files now indeed have ID attributes. What I can't find is where in the GUI one can change the ID of an object. Could someone tell me where to look? Thanks. |
| Posted by Puybaret at Mar 11, 2021, 8:56:25 AM |
|
Re: How to change ID of home objects There's no method to change the ID of objects. Too dangerous! But you can manage your own ID with a property using setProperty / getProperty methods of HomeObject super class. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by david4502 at Sep 10, 2021, 9:31:08 PM |
|
Re: How to change ID of home objects In Inkscape you can change the ID of any object. I thought that this changelog entry meant that we could now change the ID of a wall or a piece of furniture by entering the desired ID into a text field somewhere in the Sweethome 3D program. So what does this changelog entry mean? |
| Posted by Puybaret at Sep 10, 2021, 10:33:01 PM |
|
Re: How to change ID of home objects "which may be modified" is related to objects, not to IDs. This changelog means that all objects which content may change have an (internal) unique ID. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
|
|
Current timezone is GMT Dec 21, 2025, 4:21:09 AM |