Help on Animation

Hi,

I have created and exported my model from 3DS Max into the Panda3D. I have skinned my “stick man” and used biped.

The model loads OK but I am not being able to add any movement/animation to it. It twists the part capture and it behaves strangely.

The code I am using is:
#Expose and control the joints
self.upperarm= self.stickman.exposeJoint(None, ‘modelRoot’, ‘Bip01 R UpperArm’)
self.upperarmC= self.stickman.controlJoint(None, ‘modelRoot’, ‘Bip01 R UpperArm’)

#Motion
self.upperarmC.setHpr(0,0,0)

Any idea what am I doing wrong?

Thanks

Just to add a note… the setHPR I have entered in the above message is all 0s, if I change it it twists my stickman!!

Cheers

I don’t understand. If you don’t want the joint to twist when you change its rotation, what would expect it to do instead?

David

I want it to move the position, so in this case for example I want the arm to raise and not twist… :frowning:
I thought about hprinterval but it still don’t work!!
Thanks!!

OK… I should be using setP/setH… and not hpr, is that correct?
But, how can I create an interval with setP to actually show the “arm” raising?
Thanks

i = Sequence(LerpHprInterval(self.upperarmC, 2, hpr = (0, 90, 0), LerpHprInterval(self.upperarmC, 2, hpr = (0, 0, 0))
i.loop()

Great!! Just tested it and it is all OK!!
Many thanks David!!