|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: use private elements of the classes HomePane and HomeController for made a plugin to export the furniture in separated obj |
|
| Print at Dec 20, 2025, 5:00:44 AM | |
| Posted by chicosRV at Jun 22, 2012, 3:22:38 PM |
|
use private elements of the classes HomePane and HomeController for made a plugin to export the furniture in separated obj hello i need to make a plugin to export the furniture in separated obj files, i have to use private elements of the classes HomePane and HomeController. how can i do this????? |
| Posted by Puybaret at Jun 22, 2012, 4:16:32 PM |
|
Re: use private elements of the classes HomePane and HomeController for made a plugin to export the furniture in separated obj Which elements do you need? ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by chicosRV at Jun 22, 2012, 5:04:16 PM |
|
Re: use private elements of the classes HomePane and HomeController for made a plugin to export the furniture in separated obj this is what i have done i modified the original code of the methods export to obj(it originally exported everything in one obj) but what i really need is to made that function in a plugin when a took the code for made the pluggin there were a lot of element that get selected like error the plugin class only have the home and the userPreferences this is the code class Home Controller public void exportToOBJ() {class HomePane public static void exportHomeToFile(Home home, String objFile, String header) throws RecorderException { |
| Posted by Puybaret at Jun 22, 2012, 7:00:27 PM |
|
Re: use private elements of the classes HomePane and HomeController for made a plugin to export the furniture in separated obj I think you missed the following point: Version 3.5 gave access to the HomeController instance from a plug-in instance. Then, from the HomeController instance you can access to the other controllers and their views if necessary. If exportToOBJ method doesn't perform like you want, I don't see the problem to write your own method in your plug-in. But if you want to change the behavior of the existing exportToOBJ method, you'll have to create a derived version of Sweet Home 3D, not a plug-in. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by chicosRV at Jun 26, 2012, 9:42:15 PM |
|
Re: use private elements of the classes HomePane and HomeController for made a plugin to export the furniture in separated obj thanks for your help i already downloaded the 3.5 version but i could finally made the plugin for the 3.3 version(it was a very important school homework and i couldn't use other version) but at the end i could made it(i don't wanted to change the original exportToObj, i only wanted to test the method a made) my pupouse was to made a export to open it in another application by the way the orientation of a furniture is given by an angle , respect to what axe(x,y or z) it is,beacause i need to convert that angle in a vector, it;s that posible??? |
|
|
Current timezone is GMT Dec 20, 2025, 5:00:44 AM |