So I’m following the Panda3D “A Panda Hello World” tutorial and have this in a python file:
from direct.showbase.ShowBase import ShowBase
class MyApp(ShowBase):
def __init__(self):
ShowBase.__init__(self)
#Load the environment model
self.environ = self.loader.loadModel("models/environment")
#Reparent the model to render.
self.environ.reparentTo(self.render)
#Apply scale and position transforms on the model.
self.environ.setScale(0.25, 0.25, 0.25)
self.environ.setPos(-8, 42, 0)
app = MyApp()
app.run()
However when I run it via command prompt “python filename.py” (note that I did put the name of the file in place of “filename”), I receive the following error:
Any ideas what’s wrong?
Thanks in advance!