Hi all, this could be a noob question due to lack of understanding of the tree, but I want to create a Text Node and then attach it to a model using
textNode = TextNode("smth_TextNode") model.attachNewNode(textNode)
I wish to change the text some time later. But when I come back and iterate through the model’s children using
the node in there is a generic panda3d.core.NodePath object, which doesn’t support setText() anymore. So is there a way to access a Text Node through the hierarchy?
Or more generally, if I extend the NodePath class, and insert a self-defined object into the scene graph tree, all attributes I add to the object seem to be lost when I traverse the tree. Is there a way to retrieve or keep those attributes, without having a list that stores all the original references?