michi Posted June 19, 2015 Share Posted June 19, 2015 Hi,I often have some backup objects in my scene on a different layer.Is it possible to exclude specific objects from export? Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted June 19, 2015 Share Posted June 19, 2015 yes, Quote Link to comment Share on other sites More sharing options...
gryff Posted June 19, 2015 Share Posted June 19, 2015 Hi michi - welcome to the BJS forum. As JCP says just "export current layer only". Never had a problem with JCP's exporter - it does a nice job. Sometimes, that current layer can be complex and I want to hide some specific items to monitor how the building of other items is going. I could move those items I want to hide temporarily to another layer but you can also use this little trick (see image below) - clicking on the camera icon besides the object so that is greyed out. Those objects will be exported - but be invisible. One thing I do sometimes wish for is "exported selected layers only" - so that the choice is not just one or all layers. cheers, gryff Quote Link to comment Share on other sites More sharing options...
michi Posted June 19, 2015 Author Share Posted June 19, 2015 Great,thank you very much! Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted June 19, 2015 Share Posted June 19, 2015 One thing I do sometimes wish for is "exported selected layers only" - so that the choice is not just one or all layers.Sorry, have higher priorities right now. Am exploring how to get procedural textures exported. Gave up on the mapping of Blender procedurals to BJS's. Never going to work. Baking looking feasible so far. Still operating the Blender user interface to produce. Kind of slow & a lot of flashing of different layout combos while it builds. Thought at first something was wrong, but realized Blender must be trying different layouts to map the object. As part of a script, do not think anything will be visible though, except maybe the bake progress bar. Suppose that now I know how to do it, I could just take care of my needs. There are extra steps to do if you wish to keep it out of the exporter though. You then have to delete the procedural textures & add the file. Also means you lose the ability to refine & re-generate. Quote Link to comment Share on other sites More sharing options...
gryff Posted June 20, 2015 Share Posted June 20, 2015 Sorry, have higher priorities right now. That's OK Jeff - just something I wish for now and again when I have a complex scene like the Christmas Village I built a while back As for Procedural textures - not something I use much, but good luck with it. When I use the "baking" process - most likely to bake from a highpoly (subdivided) mesh to a lowpoly (one I export) mesh. cheers, gryff Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted June 21, 2015 Share Posted June 21, 2015 FYI,I changed from active layer only to selected layers only. Know this small python function means nothing to you, but you might not be only reader. def isInSelectedLayer(self, obj, scene): if not self.export_onlySelectedLayer: return True for l in range(0, len(scene.layers)): if obj.layers[l] and scene.layers[l]: return True return FalseThe basic decision making plumbing about baking is complete. Now for the Blender specific python API calls. Will be a while before only selected layers shows up. Not putting out by itself, & .babylon exporter is down stream of TOB from a development standpoint. Quote Link to comment Share on other sites More sharing options...
8Observer8 Posted September 22, 2016 Share Posted September 22, 2016 Why is it empty? Quote Link to comment Share on other sites More sharing options...
8Observer8 Posted September 22, 2016 Share Posted September 22, 2016 I use version: 4.6.1 Is it good? Quote Link to comment Share on other sites More sharing options...
8Observer8 Posted September 22, 2016 Share Posted September 22, 2016 I found it: Quote Link to comment Share on other sites More sharing options...
gryff Posted September 22, 2016 Share Posted September 22, 2016 @8Observer8 : I use version 5.0.5 cheers, gryff Quote Link to comment Share on other sites More sharing options...
8Observer8 Posted September 22, 2016 Share Posted September 22, 2016 21 minutes ago, gryff said: I use version 5.0.5 Where did you get it? https://github.com/BabylonJS/Babylon.js/blob/master/Exporters/Blender/io_export_babylon.py Quote Link to comment Share on other sites More sharing options...
gryff Posted September 22, 2016 Share Posted September 22, 2016 Here: Ver 5.0.5 And a useful tool for using layers is the Layer Management addon . It allows you to give names to layers. cheers, gryff Wingnut 1 Quote Link to comment Share on other sites More sharing options...
8Observer8 Posted September 22, 2016 Share Posted September 22, 2016 It is the same: 'version': (4, 6, 1), 2 minutes ago, gryff said: Layer Management I will try it! Thanks! Quote Link to comment Share on other sites More sharing options...
gryff Posted September 22, 2016 Share Posted September 22, 2016 No they are not the same. If you notice the exporter : "io_export_babylon.py" was last updated 3 months ago. Ver 5.0.5 was last updated 18 days ago. When installing 5.0.5 just point the "Install From File" to the zip file itself - no need to unzip it. cheers, gryff Quote Link to comment Share on other sites More sharing options...
8Observer8 Posted September 22, 2016 Share Posted September 22, 2016 Oh, yes! Sorry. I see now that it is the archive "Blender2Babylon-5.0.zip". I unziped it but I didn't saw "io_export_babylon.py" in it. I did not know that I can install from .zip. I delected "io_export_babylon.py" file, restarted Blender, and Installed this exporter from zip. I tryed it on SandBox, It is works! Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.