SweetHome3D multiple exports autohotkey script tutorial english
You can have the Script Code here:
https://pastebin.com/J73ywV4X
Copy the code in a new textfile. chance .txt to .ahk
Be sure you have installed autohotkey2
Follow this video
Have a nice day!
Even though it would be much nicer if Sweet Home 3D could do this on its own, I have now managed to make a workaround macro.
You are welcome to use it and put it on the plugin website, you can also change it or do whatever you want with it - I hope it will help other users to compensate the missing internal function of Sweet Home 3D - A big disadvantage of such a macro is always the source of error that the user operates it incorrectly or changes the window. Unfortunately I do not know a solution for this - it remains an emergency workaround. (do nothing bad with it this is to help people so don’t destroy stuff! Be friendly)
Programme required to execute the script Autohotkey2
I hope sweet Home 3D will find sometimes a better internal solution to this problem. I think that would make some customers happier.
Until then, I hope I could help other customers.
Translated with DeepL.com (free version)
Script Overview and Instructions
What the Script Does: This AutoHotkey script automates the export of objects from Sweet Home 3D to .obj format. It copies the name of each object and appends a formatted number (e.g., 0001, 0010, etc.) before exporting it as a file.
How to Use the Script:
Start Sweet Home 3D and open your project.
Count the number of objects you want to export (visible at the bottom left in the Sweet Home 3D interface).
Edit the script file with a text editor (Notepad++ or any text editor) and adjust the number in Loop, 28 to match your object count. (28 means 28 objects will export)
Save the changes. Run the script. You will have 10 seconds to switch back to the Sweet Home 3D window. Click on the first object in the list that you want to export (topmost object).
Do not touch the mouse or keyboard during the export process, as this could interfere with the script. Very important!
To stop the script in an emergency, press the Backspace key (located above the Enter key). This will abort the script immediately. Very important!
Note: Make sure to not interact with other windows during the script’s execution, as this could cause unexpected results! Very important!
Use it on own risk!