High priority Generate Code for SH3D

This topic has been viewed 4987 times and has 6 replies
Thread status: Active
Questions about extending features and developing plug-ins [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
Mitsaki
Posts: 62
Joined: Tue Jul 26, 2011 2:27 pm

Generate Code for SH3D

Post by Mitsaki »

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?
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Generate Code for SH3D

Post by Puybaret »

What do you mean by "generate the code"? Which code? Java? Plug-in? OBJ format code?...
Emmanuel Puybaret, Sweet Home 3D creator
Mitsaki
Posts: 62
Joined: Tue Jul 26, 2011 2:27 pm

Re: Generate Code for SH3D

Post by Mitsaki »

You are right, I had to specify that. I actually want to generate java code.
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Generate Code for SH3D

Post by Puybaret »

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
Mitsaki
Posts: 62
Joined: Tue Jul 26, 2011 2:27 pm

Re: Generate Code for SH3D

Post by Mitsaki »

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 ?
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Generate Code for SH3D

Post by Puybaret »

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
Mitsaki
Posts: 62
Joined: Tue Jul 26, 2011 2:27 pm

Re: Generate Code for SH3D

Post by Mitsaki »

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.

I hope I was explicit enough.
Mitsaki

Any help you be really helpful
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest