I’m attempting to find a set of tags that I’ve applied to a piece of geometry in Blender and exported via YABEE.
[edit]
All right, I’ve figured out why “getNetTag” wasn’t turning up my tag, I believe. It turns out that I wasn’t sufficiently thinking about what the method description said when I read it: the “*netTag” methods search up the node tree, not down.
So, my question has changed: is there any way, short of iterating over all children, of finding a node at or below a given node that has a specific tag – or better yet, all nodes that do?
The remainder of my original post should be below.
[/edit]
The resultant egg file does appear to have the tags as desired:
# ...
<Group> water {
<Tag> "u speed" { 0.30000001192092896 }
<Tag> "v speed" { 0.019999999552965164 }
<Tag> "u scale" { 20.0 }
<Tag> "v scale" { 12.0 }
<Tag> "rotation speed" { 10.199999809265137 }
# ...
Calling “ls()” on the loaded geometry produces the following output, I believe:
ModelRoot water_surface.egg [depth file] T:(pos 0 0 -1.02286) S:(CullBinAttrib LightAttrib)
PandaNode
GeomNode water (1 geoms: S:(MaterialAttrib TextureAttrib)) [rotation speed u scale u speed v scale v speed]
Note the section in square brackets on the last line.
So it looks as though the tags are present… and yet all calls to “getTag”, “getNetTag” and “findNetTag” have failed to reach them, it seems: the “get” methods return empty strings while printing the result of the “find” method produces “not found”.
So, where am I going wrong? Are there perhaps formatting restrictions on tag keys, such as whitespace being disallowed?