Hello World Tutorial issues with Panda 1.9.0 devel

Hi all,

I’ve just started using Panda today, but since I’m running Ubuntu 14.04, I was forced to get the latest development deb and hope for the best. It installed fine, but there seem to have been some API changes which mean I can’t get through the tutorial.

self.pandaActor.setScale(0.005, 0.005, 0.005)
TypeError: descriptor ‘setScale’ requires a ‘panda3d.core.NodePath’ object but received a ‘float’

TypeError: reparent_to() takes 2, 3, or 4 arguments (1 given)

I’m hoping someone can fill me in on the new methods, or point me to some up to date docs, since I don’t see myself getting very far without them :slight_smile:. Thanks.

What these errors seem to imply is that self.pandaActor is a class, (ie. Actor) rather than an instance thereof. Can you paste the full code you’re using?

The problem is fixed now. It was down to my silly use of whitespace coming from C-like languages after years away from Python. I did this:

self.pandaActor = Actor
		"walk":	"models/panda-walk4"

As soon as I got rid of the erroneous whitespace the example worked fine. Thanks for pointing me in the right direction. Lesson learnt.