tag not found

from panda3d.core import *
import direct.directbase.DirectStart

model = loader.loadModel('a.egg')

node = model.find('**/main')
print node

egg file:

<CoordinateSystem> { Z-up }

<Comment> { "Egg laid by Chicken for Blender, version R91" }

<Group> Cube {
  <Tag> main {  }
  <VertexPool> Cube {
    <Vertex> 0 {
      1.0 0.999999940395 -1.0
    }
    <Vertex> 1 {
      1.0 -1.0 -1.0
    }
    <Vertex> 2 {
      -1.00000011921 -0.999999821186 -1.0
    }
    <Vertex> 3 {
      -0.999999642372 1.00000035763 -1.0
    }
    <Vertex> 4 {
      1.00000047684 0.999999463558 1.0
    }
    <Vertex> 5 {
      -0.999999940395 1.0 1.0
    }
    <Vertex> 6 {
      -1.00000035763 -0.999999642372 1.0
    }
    <Vertex> 7 {
      0.999999344349 -1.00000059605 1.0
    }
    <Vertex> 8 {
      1.0 0.999999940395 -1.0
    }
    <Vertex> 9 {
      1.00000047684 0.999999463558 1.0
    }
    <Vertex> 10 {
      0.999999344349 -1.00000059605 1.0
    }
    <Vertex> 11 {
      1.0 -1.0 -1.0
    }
    <Vertex> 12 {
      1.0 -1.0 -1.0
    }
    <Vertex> 13 {
      0.999999344349 -1.00000059605 1.0
    }
    <Vertex> 14 {
      -1.00000035763 -0.999999642372 1.0
    }
    <Vertex> 15 {
      -1.00000011921 -0.999999821186 -1.0
    }
    <Vertex> 16 {
      -1.00000011921 -0.999999821186 -1.0
    }
    <Vertex> 17 {
      -1.00000035763 -0.999999642372 1.0
    }
    <Vertex> 18 {
      -0.999999940395 1.0 1.0
    }
    <Vertex> 19 {
      -0.999999642372 1.00000035763 -1.0
    }
    <Vertex> 20 {
      1.00000047684 0.999999463558 1.0
    }
    <Vertex> 21 {
      1.0 0.999999940395 -1.0
    }
    <Vertex> 22 {
      -0.999999642372 1.00000035763 -1.0
    }
    <Vertex> 23 {
      -0.999999940395 1.0 1.0
    }
  }
  <Polygon> {
    <Normal> { 0.000000 0.000000 -1.000000
    }
    <VertexRef> { 0 1 2 3 <Ref> { Cube } }
  }
  <Polygon> {
    <Normal> { 0.000000 -0.000000 1.000000
    }
    <VertexRef> { 4 5 6 7 <Ref> { Cube } }
  }
  <Polygon> {
    <Normal> { 1.000000 -0.000000 0.000000
    }
    <VertexRef> { 8 9 10 11 <Ref> { Cube } }
  }
  <Polygon> {
    <Normal> { -0.000000 -1.000000 -0.000000
    }
    <VertexRef> { 12 13 14 15 <Ref> { Cube } }
  }
  <Polygon> {
    <Normal> { -1.000000 0.000000 -0.000000
    }
    <VertexRef> { 16 17 18 19 <Ref> { Cube } }
  }
  <Polygon> {
    <Normal> { 0.000000 1.000000 0.000000
    }
    <VertexRef> { 20 21 22 23 <Ref> { Cube } }
  }
}

[/quote]

Exported with Blender 2.4, chicken.

Only one cube with a tag called “main”.

when searchinf for tags i think it should be

node = model.find('**/=main') 

You’re absolutely right. I wanted to show another problem I had but when creating a demo made this stupid mistake, so I asked this first.

I’ll post the real problem with a demo now.