<Dart> { 1 } in .egg files


#1

When I export my models using 3ds max the generated .egg file has a tag that screws up the .find() function on panda code.

Example:

<Group> character {
  <Dart> { 1 }
  <Group> sphere {
    <VertexPool> sphere.verts {
    ...

I have to manually remove the dart tags If I want to access the inner nodes of my models (for example to change a texture of my character shirt only, but not his face).

        self.sphere = loader.loadModel("sphere")
        self.sphere.reparentTo(render)
        self.sphere.find('**/character/sphere').setTexture(self.sphere_tex,1)

This doesn’t work if the tag is present on the .egg

So what is that tag for and how do I export without it so I don’t have to manually do it every time?


#2

The tag is for animated models (used with the Actor class). In the export settings in max you can have your model as “model”(or “static”?), “animation” or “both”. Set them to “model”. You can also tag geometry with egg-optchar, that should work for Dart (but haven’t tried it).