When loading the same actor multiple times, I can’t seem to get any actor other than the first instance to animate. In this short example code, I expect both pandas to enter the walk cycle, but only the first panda animates.
import direct.directbase.DirectStart
from pandac.PandaModules import *
from direct.actor.Actor import Actor
base.cam.setPos( -10, -10, 10 )
base.cam.lookAt( 0, 0, 0 )
pandaActor = Actor("models/panda-model", {"walk": "models/panda-walk4"} )
pandaActor.setScale(0.005, 0.005, 0.005)
pandaActor.setPos( 0, 0, 0 )
pandaActor.loop("walk")
pandaActor.reparentTo(render)
print id( pandaActor )
pandaActor = Actor("models/panda-model", {"walk": "models/panda-walk4"} )
pandaActor.setScale(0.005, 0.005, 0.005)
pandaActor.setPos( 0, 3, 0 )
pandaActor.loop("walk")
pandaActor.reparentTo(render)
print id( pandaActor )
run()