Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 7
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 4551 times and has 6 replies Next Thread
Mitsaki
Member




Joined: Jul 26, 2011
Post Count: 62
Status: Offline
Reply to this Post  Reply with Quote 
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?
[Aug 2, 2011, 8:41:26 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9423
Status: Offline
Reply to this Post  Reply with Quote 
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
[Aug 2, 2011, 1:00:07 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Mitsaki
Member




Joined: Jul 26, 2011
Post Count: 62
Status: Offline
Reply to this Post  Reply with Quote 
Re: Generate Code for SH3D

You are right, I had to specify that. I actually want to generate java code.
[Aug 2, 2011, 2:36:26 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9423
Status: Offline
Reply to this Post  Reply with Quote 
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
[Aug 2, 2011, 6:26:32 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Mitsaki
Member




Joined: Jul 26, 2011
Post Count: 62
Status: Offline
Reply to this Post  Reply with Quote 
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 ?
[Aug 3, 2011, 2:19:03 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9423
Status: Offline
Reply to this Post  Reply with Quote 
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
[Aug 3, 2011, 6:41:47 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Mitsaki
Member




Joined: Jul 26, 2011
Post Count: 62
Status: Offline
Reply to this Post  Reply with Quote 
confused 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.

I hope I was explicit enough.
Mitsaki

Any help you be really helpful
[Aug 3, 2011, 6:54:29 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

  Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads  
© Copyright 2024 Space Mushrooms - All rights reserved