Joined: Jul 26, 2011
Post Count: 62
Status:
Offline
Generate Code for SH3D
Hello,
I am starting to use SH3D, but it would be more useful for me to be able to generate the code of what I am designing in SH3D. Is there any plug-in or other way that I could achieve that?
France
Joined: Nov 7, 2005
Post Count: 9423
Status:
Offline
Re: Generate Code for SH3D
What do you mean by "generate the code"? Which code? Java? Plug-in? OBJ format code?...
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
France
Joined: Nov 7, 2005
Post Count: 9423
Status:
Offline
Re: Generate Code for SH3D
Do you search a plug-in able to generate the Java code that creates instances of PieceOfFurniture, Wall, Room... classes then calls their setters according to user's actions in the plan? It doesn't exist and sorry, but I don't see what it could be useful for... If you want to follow the creation and modifications of objects, you should add listeners to Home and other classes instances. If you look for an example, read addModelListeners method in PlanComponent class.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
Joined: Jul 26, 2011
Post Count: 62
Status:
Offline
Re: Generate Code for SH3D
The problem is that I want to make my own application using SH3D and then import it in blender. But I don't know how to start doing it, because the developer's guide is about plug-ins. Do you know any tutorial ?
France
Joined: Nov 7, 2005
Post Count: 9423
Status:
Offline
Re: Generate Code for SH3D
I want to make my own application using SH3D and then import it in blender
Even if I just learnt that a Blender port to Java exists, I still don't see what you want to do. Please give more details.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
Joined: Jul 26, 2011
Post Count: 62
Status:
Offline
Re: Generate Code for SH3D
Well, my project is to create an application which collects the preferences (like which color he/she wants in the walls) of the user through a GUI that I have already created and after the user chooses what furniture he/she wants inside the room, my application is going to place them randomly. What do I want? - First, to find a way to open sweethome3d through a java script (or python script, even better) - To find a way to place them randomly
Afterwards, I am going to combine SH3D and MakeHuman in order to create a small video animation.