Hello, i am new to the whole design seen, here is the error i get, BUT FIRST, here is the code i use:
import direct.directbase.DirectStart
#Load enviornment
enviorn = loader.loadModel("models/enviornment")
enviorn.reparentTo(render)
enviorn.setScale(0.75,0.75,0.75)
enviorn.setPos(-8,42,0)
#end
run()
and the error is:
File firstscript.py line 4, in ?
enviorn.reparentTo<render>
AttributeError: 'NoneType' object has no attribute 'raparentTo'
How do i fix this?