|
Sweet Home 3D Forum » List all forums » » Forum: 3D models and textures » » » Thread: ROOF WINDOW / VELUX WINDOWS » » » » Post: Re: ROOF WINDOW / VELUX WINDOWS |
Print at Dec 16, 2025, 10:29:56 AM |
| Posted by sjb007 at Dec 5, 2022, 2:44:50 PM |
|
Re: ROOF WINDOW / VELUX WINDOWS Yeah, I'm understanding how the hinging gets messed up now. I can see a way to write a post process script that would fixup the hinges and rails, but there's a problem with delineating the objects in the exported file. For whatever reason SH3D does not export with "o" lines. It only uses "g" lines for the groups. So there is no way to tell one window object from another in the export. The objects are at least added in a serial fashion, so there is no intermixing of the objects' groups. Then there can also be multiple mesh groups with hinge_1 for example in a single object so it makes it tricky (but not impossible) to write a script. I think the logic would be something like: if hinge_1 has been used in an opening_on_hinge_1 and a new hinge_1 line is encountered, then this is a different hinge. (The multiple hinge_1 lines in a single object have so far always, all preceeded the opening_on_hinge_1 lines in my tests of the doors and windows. Ideally SH3D would add "o" to exports, and split into separate objects on imports where "o" is used. This would immediately fix the export/import workflow for these kinds of workarounds. In the absence of this, I might bash something together out of python (my poison of choice). This would also keep it a semi-manual, optional task. At the end of the day, I'm just scratching my own itch. |
|
|
Current timezone is GMT Dec 16, 2025, 10:29:56 AM |