Joined: Jan 3, 2025
Post Count: 22
Status:
Offline
Copy saved view
Hi
I've got a problem I've got one saved file which contains my +0 floor Within that file, i saved a view (so i can always use same level of zoom etc etc)
I've got a second saved file for my garden. I didnt know i could add a floor level until then. So there i have a -1 and +0 floor too. BUT, i dont have that same saved view.
So its hard to get the same level of zoom which i hardly need.
Is there a way i can copy the view from file 1 to file 2 ?
I tried copying the 2 floors to the first file, but its hard, cause theres too much in it.
Netherlands
Joined: Apr 8, 2022
Post Count: 1353
Status:
Offline
Re: Copy saved view
There is no easy way to do this. The difficult way is a hack:
Make a backup of both .sh3d files before you try this! Close Sweet Home 3D before you start this. Use a plain text editor to edit files, i.e. an editor that saves a plain text file.
Open the sh3d file with the saved view in a archive manager (a sh3d file is just a zip file). You should see a list with the files in the archive. Select and open the file "Home.xml" in a plain text editor. Somewhere in the first 50 lines or so you will see a line that starts with "<camera attribute='storedCamera' id=...", That is your stored view. You can see that this line is below a line that starts with "<camera attribute='topCamera'...". Remember that. (If you have multiple stored views there will be multiple lines with "storedCamera", one line for each stored view.)
Now open the second sh3d file with the missing view. Find the line that starts with "<camera attribute='topCamera'...". Copy the complete line with "storedCamera" from the first file and paste it below the line with "topCamera" in the second file.
Save and close the file. Most archive managers will ask to update the file in the archive, do so. Close the sh3d archive.
Close the first file without saving, you changed nothing. Close the first sh3d archive.
If you open the second file in Sweet Home 3D you should now have a stored point of view.
---------------------------------------- Dodecagon.nl 1000+ 3D models, manuals, and projects
Joined: Jan 3, 2025
Post Count: 22
Status:
Offline
Re: Copy saved view
It makes logic to do so. When trying to save to the sh3d archive, it fails saying its read only, although its not. Trying to extract the file first, adjust it, and put it back to zip file, same thing :(
Netherlands
Joined: Apr 8, 2022
Post Count: 1353
Status:
Offline
Re: Copy saved view
For me (on Linux) it works as I decribed. I use the same method to update version numbers in furniture library property files (a furniture library .sh3f file is also a zip file).
You can first try to rename the .sh3d to .zip. Maybe that solves the readonly problem if you are sure the file is not readonly. Maybe it's in a directory where you can't edit?
If that doesn't work then you can extract the whole file in a directory. Update and save the Home.xml file. Select all files in the directory and create a new zip file. Change the extension from zip to .sh3d and you're done.
---------------------------------------- Dodecagon.nl 1000+ 3D models, manuals, and projects
Netherlands
Joined: Apr 8, 2022
Post Count: 1353
Status:
Offline
Re: Copy saved view
I just noticed that there is a plugin to import/export camera's. That is esssentially what I described but using the plugin is of course much easier. This plugin exports the camera's to a CSV file which you can import into the second project. Be aware that it will overwrite existing camera's if they have the same name. Disclaimer: I haven't installed this plugin and did not try it myself. If you have the plugin "Plugin manager" installed you can see it in the list with all plugins.
---------------------------------------- Dodecagon.nl 1000+ 3D models, manuals, and projects