Trouble with findNetTag

Dear Forum,

    self.PathModell[self.ActivePath].find('KeyPointSuperNodeCopy').ls()

yields:

PandaNode KeyPointSuperNodeCopy
PandaNode KeyPointSuperNode
ModellRoot ball2.egg [KeyBall] T:(pos 0.0 0.0 0.0) S:(TextureAttrib)
GeomNode ball (1 geoms)

but

self.PathModell[self.ActivePath].find(‘KeyPointSuperNodeCopy’).findNetTag(‘KeyBall’)

yields an empty NodePath

Why ??

with kind regards

Martin

Looking at the description of “findNetTag” in the API, it seems that findNetTag actually searches the ancestors of the indicated node – that is to say, those closer to the root in the scene graph – rather than descendants.

I imagine that the way to do what you seem to have in mind is instead to use “find” to search for the node that has the tag, as described here.

Thank You, that threw me in the right direction