You could keep the references in a list, perhaps. Something like this:
# In your initialisation:
self.modelList = []
# /initialisation
def create_point3D(self, sound, pos):
sound = self.audio3d.loadSfx(sound)
model = loader.loadModel('Res/models/sound')
self.modelList.append(model)
# The rest of your logic follows...
It seems the time has come when the obvious things are not working. However, I need to add different links to the 3D audio manager, and not to the list.
Perhaps a small wrapper-class? That might store a variety of bits of information, including a reference to the audio manager. (I think that I did something similar for certain “positioned sounds” in one of my own projects.)
[edit] (You could then store instances of that wrapper-class in the list, rather than just node-paths.)
I wonder why not leave everything as it was in the old versions of panda3D? In the end, these changes were supposed to remove unnecessary links. However, the picture is the opposite, we now have to hide links in the corners and under the pillow
Hmm, yeah, I suppose that with this issue, the old way was a bit better, even though it required explicitly unregistering the sound when destroying the node.