Print at Aug 22, 2019 1:18:23 PM View all posts in this thread on one page
Posted by clanmills at May 27, 2014 3:51:09 AM
smile   ToWebPlugin Project
I am planning to develop a plugin to create a web gallery from an SH3D model. The purpose is to enable designers to share their work with stakeholders. Currently, SH3D can create images and videos. This plugin will create a web gallery.

You can see the result that I anticipate here:

To make this demo, I used "3D View/Create photos at points of view" to create a directory of images. I then used my python script to format that into HTML/CSS/JS.

I propose to rewrite the python script in Java and the plugin will generate images and web code in a single operation. A dialog box will be provided to customize features of the plugin. Different web "themes" will be supported. The plugin will be able to generate 3D and Level plans from the SH3D model.

I don't want to make this development overly complex as my primary goal is learn and explore the capability of SH3D. I am currently relocating from Silicon Valley to retirement in England, so the development will proceed as time permits. I don't plan to write a detailed spec at this time, however I will update this thread as the project proceeds.

The project code is being stored at: and can be downloaded by anyone. If anybody wishes to cooperate in this development, please contact me to obtain write access to the repository.

I'd like to congratulate Emmanuel on his outstanding work to create SH3D and to thank him for his courtesy and encouragement to undertake this project. Well done, Emmanuel. You've done great work.

Posted by Puybaret at May 28, 2014 7:19:44 PM
Re: ToWebPlugin Project
Thanks for launching the development of this plug-in. I'm sure it will be helpful for users not aware with web programming.
May I suggest that you add the ability to include a Sweet Home 3D viewer in the generated page? I'm sure that okh will be able to give many ideas about this (see this subject and this request).
Emmanuel Puybaret, Sweet Home 3D developer

Posted by okh at May 29, 2014 11:35:29 AM
Re: ToWebPlugin Project
Interesting. I will be looking forward forward to seeing how your project develops. Best of luck with remodelling and plugin.


Posted by clanmills at May 29, 2014 7:21:37 PM
smile   Re: ToWebPlugin Project
Thanks guys. Development is moving forward quickly. Might have something useful next week. I'm using StringTemplate to generate the web pages. And the user can add templates to modify/add themes. So it will be a plugin with plugins!

I haven't looked at the SH3D plugin yet, however including support for that sounds like a good idea.

Plan is to leave Silicon Valley for England on June 19. ToWebPlugin should be in good shape by then.

Posted by clanmills at Mar 10, 2015 2:29:11 PM
smile   Re: ToWebPlugin Project
I am very pleased to announce that the first alpha version of this plugin is now available for anybody who wishes to use it. Comments most welcome.

Please be gentle with me if it doesn't work "out of the box". It has been tested on Mac/Linux/Windows. However, it's normal that nothing works on a user's computer when it's working fine for the developer. However, I think it will work OK for you and if it doesn't, I will be very happy to work with you to fix it.

I'm certain that everybody who uses this will say "Ah, but I'd like it to....." and you will have your wish. At the moment 3 "Templates" are built into the jar. In future, the user will be able to define their own templates and thereby generate any style of web gallery of their pleasing.

I'd like to thank Emmanuel for his help to get this far. And to thank Ok for giving me encouragement.

You can download the plugin from:

Installation: copy the jar to the plugins directory.
Windows: C:\Users\rmills\AppData\Roaming\eTeks\Sweet Home 3D\plugins
Mac: /Users/username/Application Support/eTeks/Sweet Home 3D/plugins
Linux: /home/username/.eteks/sweethome3d/plugins/

ToWebPlugin.jar requires SweetHome3D v4.6 and later.

Posted by Puybaret at Mar 10, 2015 3:45:28 PM
Re: ToWebPlugin Project
Thanks for this first version. smile
It worked once I created a folder with the same name as the opened home, in the folder of the sh3d file.
Emmanuel Puybaret, Sweet Home 3D developer

Posted by clanmills at Mar 10, 2015 4:57:48 PM
smile   Re: ToWebPlugin Project
Ah, thanks for looking at the plugin. For sure, there used to be a statement in the code to create that directory! This is exactly the kind of thing that's always discovered on a "clean" machine. There of course will be other strange things concerning Homes with no views and the like. And of course, if the Home is on a directory into which the Plugin cannot write - well I haven't dealt with that yet. Anyway, we'll discover and fix everything.

Thanks for helping me with this.