09th / YABEE

Export models from the Blender to Panda3D game engine
MIT License
107 stars 39 forks source link

Make external .egg references possible by adding a File tag to an Empty #19

Closed rdb closed 9 years ago

rdb commented 9 years ago

This is a feature that was in Chicken and was really useful for using Blender as scene editor, especially in combination with DupliGroups.

If you want to instantiate an external object, a really great way to do that in Blender is to create an Empty, link with the other .blend file, and then set that Empty to duplicate a group from that other .blend file.

This allows it to retain its usefulness when exporting to .egg. You can now give an Empty a "file" property and set it to "myobject.egg" and YABEE will write out a <File> { myobject.egg } reference inside an <Instance> tag (the latter is necessary to create the myobject.egg in local coordinates instead of in global coordinates).

This way of editing scenes is great because you don't end up with bloated scene .egg files.