Print at Dec 16, 2025, 7:03:41 PM

Posted by sjb007 at Jun 19, 2022, 8:13:00 PM
cool   Re: Add "o" to OBJWriter output
OK, so Java is horrible. Bloomin' strange lingo. My untested attempt did not work at all. Many iterations and tests later...

I have gotten furniture being named, and even prefixed by the level name, with the "|" character as a seperator. It imports into blender perfectly.

Walls and rooms still need attention to prefix with their level name in the same way. Additionally Rooms have names, so I'll add that. Maybe I should separate the walls and rooms into sub-collections of the level... might be nice for organisation.

I haven't yet started to look at the bit to get Blender to create collections based on the level name, and make the objects a child of the level/collection. That is Python (which I'm way better at than Java) so it will just be a bit of a dive trying to understand the Blender API.

And now a question for the people familiar (and, unlike me, competent) with the Java code: Is it possible to check/get the parent groups from a HomePieceOfFurniture? I'm thinking the group hierarchy could be also turned into sub-collections. i.e.
<kitchen-level>|<island-group>|<tall-chair-group>|<tall-chair-01>
<kitchen-level>|<island-group>|<tall-chair-group>|<tall-chair-02>
<kitchen-level>|<island-group>|<tall-chair-group>|<tall-chair-03>

I'm not decided whether the SH3D groups should become sub-collections or be done with parent objects. Parent Objects would behave more like SH3D.