Greetings All,
I’ve defined a delete function with the attached code to delete images I rendered by Panda3d.
But when I called the delete function, all give me the following error:
AttributeError: ‘panda3d.core.PandaNode’ object has no attribute ‘getFullpath’
[*]Running Panda3d 1.9.2 with Ubuntu 14.04 64bit on server.
function code
def delete(self):
self.alnp.removeNode()
for n in self.light_nodes:
n.removeNode()
for m in self.models:
self.loader.unloadModel(m)
base.destroy()
Output
File "renderer.py", line 75, in delete
self.loader.unloadModel(m)
File "/anaconda2/lib/python2.7/site-packages/direct/showbase/Loader.py", line 289, in unloadModel
assert Loader.notify.debug("Unloading model: %s" % (modelNode.getFullpath()))
AttributeError: 'panda3d.core.PandaNode' object has no attribute 'getFullpath'
Any help would be appreciated.