|
Sweet Home 3D Forum » List all forums » » Forum: Wishlist » » » Thread: Keep folder structure intact » » » » Post: Keep folder structure intact |
Print at Dec 16, 2025, 7:08:15 PM |
| Posted by Waldemar.Hersacher at Jun 19, 2025, 12:13:16 AM |
|
Keep folder structure intact I was creating some doors to match the thickness of the walls. I added the doors to a furniture library. Since this a normal zip archive I unpacked it and moved all common files one level up. These files are the material files and the texture. In the obj-file I changed the path of the mtl-file to the correct location. Then I packed the files and placed the furniture library in the subfolder of SH3D. ( I didn't do that with the obj-files but I expect that this will work too) Inserting the doors shows it completely with all materials. Saving the home and reopening it the material is gone. I unpacked the sh3d-file and added the missing mtl-file and texture. I packed it again and opened the home. The material is here again. But with the next save the additional files have been gone. Since I have just a few doors the advantage is not so big. But I think with a library like Keet's doors with a lot of double identical files this might be remarkable. But there is something to take care of: The files of the furniture libraries will be on the same level. Inserting objects might overwrite an already exiting mtl-file or texture from another library. One possible solution to this can be: When for the first time an object is inserted from a library copy the mtl-file(s) and texture file(s) to the sh3d-file giving each a unique number (which is already done to the other files and folders). You need to create an entry with a tag like <UsedLibrary> to create a reference between the file names in the library and the file names in sh3d in the home.xml file. In the obj-file you need to replace the original mtl-file name with the new file name. If another object is inserted from the same library you just need to change the mtl-file name. You can optimize that to only copy those files which are really needed by the object and if another object from the same library is used you need to add only the missing files. You don't need to do that in the case as it is today that the obj-file, the mtl-file and all textures are in the same subfolder. ---------------------------------------- MSI GP60, Linux Mint 21.3 Virginia base: Ubuntu 22.04 jammy, SH3D 7.5 with Photo-video rendering 2.8 |
|
|
Current timezone is GMT Dec 16, 2025, 7:08:15 PM |