England
Joined: May 16, 2014
Post Count: 33
Status:
Offline
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.
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.
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.
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
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 creator
England
Joined: May 16, 2014
Post Count: 33
Status:
Offline
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.
England
Joined: May 16, 2014
Post Count: 33
Status:
Offline
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.
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.
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
Re: ToWebPlugin Project
Thanks for this first version. 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 creator
England
Joined: May 16, 2014
Post Count: 33
Status:
Offline
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.