I am quite the Python newbie
I started from the roaming Ralph sample. Now, after these lines…
self.environ = loader.loadModel(MYDIR+"/models/world") self.environ.reparentTo(render) self.environ.setPos(0,0,0)
I added this…
self.axis = loader.loadModel(MYDIR+"/Models/3Axis") self.axis.reparentTo(render)
I placed the 3Axis.egg into the models directory (I had another file that could load it, so, I know the model file is not corrupt).
I get this error…
Traceback (most recent call last): File "Tut-Roaming-Ralph.py", line 261, in ? w = World() File "Tut-Roaming-Ralph.py", line 74, in __init__ self.axis.reparentTo(render) AttributeError: 'NoneType' object has no attribute 'reparentTo'
Any help would be greatly appreciated. I don’t really understand what this error means to begin with.
Thanks in advance