While converting from maya85 to .egg there were a few errors but the .egg file was created successfully. I have tried to load the egg file & the game runs showing the environment but my model is nowhere to be found - can any 1 suggest something plz…
Thought the model scaling might be out, so I’ve played around with the scaling but still can’t see the model in game
conversion errors:
Initializing Maya.
‘import site’ failed; use -v for traceback
ImportError: No module named maya.app.python
ImportError: No module named maya.app.python
ImportError: No module named maya
ImportError: No module named maya.cmds
ImportError: No module named maya.utils
ImportError: No module named maya.mel
ImportError: No module named maya.app
ImportError: No module named maya.app.startup.batch
Writing /c/Panda3D-1.4.2/bin/Trob.egg
script:
import direct.directbase.DirectStart
from pandac.PandaModules import *
from direct.interval.IntervalGlobal import *
#Load the first environment model
environ = loader.loadModel(“models/environment”)
environ.reparentTo(render)
environ.setScale(0.25,0.25,0.25)
environ.setPos(-8,42,0)
import sys,os
from pandac.PandaModules import Filename
get the location of the ‘py’ file I’m running:
mydir = os.path.abspath(sys.path[0])
convert that to panda’s unix-style notation
mydir = Filename.fromOsSpecific(mydir).getFullpath()
now load the model
Trob = loader.loadModel(mydir + “/models/Trob.egg”)
Trob.reparentTo(render)
Trob.setScale(0.25,0.25,0.25)
environ.setPos(-8,42,0)
Trob.detachNode()
run()