I’m not sure if I’m doing something wrong, or if I’ve found a bug, or what. I’ve got a model that I’ve downloaded from the internet. I can export the mesh & textures and load them with panda just fine. But when I try to export one of the animations from the file my test code crashes.
Traceback (most recent call last):
File "/home/oddzod/panda tests/test1.py", line 18, in <module>
app = MyApp()
File "/home/oddzod/panda tests/test1.py", line 10, in __init__
'Run','Zuleyka_run'
File "/usr/share/panda3d/direct/actor/Actor.py", line 284, in __init__
if (type(anims[anims.keys()[0]])==type({})):
AttributeError: 'set' object has no attribute 'keys'
Script terminated.
from direct.showbase.ShowBase import ShowBase
from direct.actor.Actor import Actor
class MyApp(ShowBase):
def __init__(self):
ShowBase.__init__(self)
self.actor = Actor( 'Zuleyka', {
'Run','Zuleyka_run'
})
self.actor.reparentTo(self.render)
self.actor.setPos(8,42,0)
app = MyApp()
app.run()
To export the animation I selected the model, export, Animations Only, added the animation Run, frames 96 to 101 then exported.
The animation egg http://www.oddzod.com/uploads/Zuleyka_run.egg