Download

Online

Gallery

Blog

  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: 4
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 4777 times and has 3 replies Next Thread
akuma
Newbie



Cuba
Joined: Jan 24, 2014
Post Count: 8
Status: Offline
Reply to this Post  Reply with Quote 
confused save scene

Hi how I can call from a plugin to the methods to save the scene in .sh3d format. confused
[Apr 8, 2014, 4:25:31 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: 9141
Status: Offline
Reply to this Post  Reply with Quote 
Re: save scene

What about the save method in HomeController class?
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Apr 8, 2014, 5:27:43 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
akuma
Newbie



Cuba
Joined: Jan 24, 2014
Post Count: 8
Status: Offline
Reply to this Post  Reply with Quote 
Re: save scene

yes, of course, sorry, but I formulated the question wrongly. I really want to know is how i can add extra information to the .sh3d
file. if I don´t make this from a plugin what way I need to follow.
[Apr 10, 2014, 8:08:25 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: 9141
Status: Offline
Reply to this Post  Reply with Quote 
Re: save scene

With a plug-in, the only way I can see could be using the setVisualProperty method in Home class. Be sure that all the objects you store there implements java.io.Serializable interface.
Without a plug-in, you will have more freedom but it will be more complicated, since you will have to create a derived version of Sweet Home 3D, by subclassing SweetHome3D class, to override its getHomeRecorder method and return a different HomeRecorder instance. If you go that way, you can also override createHome to return a Home subclass instance of your choice.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Apr 11, 2014, 9:06:21 AM] 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 2006-2024 eTeks - All rights reserved