Hi, I’m not sure if this is the best place to report a bug but I’ve got one. Please let me know and I’ll re-post in the appropriate location.
I noticed this issue in Panda 1.3.0 and just upgraded to try and fix it , but it seems to still be an issue.
I’m simply trying to blend animations as outlined in the panda manual using the robot tutorial assets and the following code.
base.disableMouse()
camera.setPosHpr(14.5, -15.4, 14, 45, -14, 0)
base.setBackgroundColor( 0, 0, 0 )
robot1 = Actor.Actor('models/robot',
{'leftPunch' : 'models/robot_left_punch',
'rightPunch' : 'models/robot_right_punch',
'headUp' : 'models/robot_head_up',
'headDown' : 'models/robot_head_down'})
#Actors need to be positioned and parented like normal objects
robot1.setPosHprScale(-1,-2.5,4,45,0,0,1.25,1.25,1.25)
robot1.reparentTo(render)
robot1.enableBlend()
robot1.setControlEffect('leftPunch',0.5)
robot1.setControlEffect('rightPunch',0.5)
robot1.loop('leftPunch')
robot1.loop('rightPunch')
robot1.disableBlend()
run()
The above code simple loops the ‘rightPunch’ animation with no apparent blending w/the ‘leftPunch’ animation.
I’ve also noticed that calling
robot1.disableBlend()
produced the following error message:
robot1.disableBlend()
File "C:\Panda3D-1.3.2\direct\src\actor\Actor.py", line 1182, in disableBlend
self.enableBlend(PartBundle.BTSingle, partName)
AttributeError: type object 'libpanda.PartBundle' has no attribute 'BTSingle'
Which leads me to belive that the python classes and the source are out of synch in this build.
I have also posted this issue here and it seems that at least one other person is experiencing similar issues.
https://discourse.panda3d.org/viewtopic.php?t=2267