Exemplo n.º 1
0
    def loadScene(self, filename):
        # if material file exists copy needed files to needed locations
        print "--"
        print self.bLocalSceneLoaded
        if (self.bLocalSceneLoaded == False):
            self.bLocalSceneLoaded = True
            self.scenedata = SceneDataManager(filename)
            if (self.scenedata.hasCopyFiles):
                #self.scenedata.copyFilesToDirs()
                self.scenedata.addResourceDirToRenderer()
                pass

            time.sleep(1)
            if (filename != None):
                if (filename != ""):
                    self.dotScene, self.dsManager = loader.load_dotscene(
                        filename)
                    self.dsManager.localScene = self
                    self.dsManager.startcenterX = self.dsManager.xshift
                    self.dsManager.startcenterY = self.dsManager.yshift
                    self.dsManager.startcenterZ = self.dsManager.zshift

                    self.dsManager.setHighlight(self.highlight)
                    #self.dsManager.setFlipZY(self.flipZY, self.xshift, self.yshift, self.zshift, self.xscale, self.yscale, self.zscale)
                    self.dsManager.setFlipZY(self.flipZY)

        else:
            self.queue.put(('local scene', 'you already have scene loaded'))
            pass
Exemplo n.º 2
0
    def loadScene(self, filename):
        # if material file exists copy needed files to needed locations
        print "--"
        print self.bLocalSceneLoaded
        if(self.bLocalSceneLoaded==False):
            self.bLocalSceneLoaded=True
            self.scenedata = SceneDataManager(filename)
            if(self.scenedata.hasCopyFiles):
                #self.scenedata.copyFilesToDirs()
                self.scenedata.addResourceDirToRenderer()
                pass

            time.sleep(1)
            if(filename!=None):
                if(filename!=""):
                    self.dotScene, self.dsManager = loader.load_dotscene(filename)
                    self.dsManager.localScene=self
                    self.dsManager.startcenterX = self.dsManager.xshift
                    self.dsManager.startcenterY = self.dsManager.yshift
                    self.dsManager.startcenterZ = self.dsManager.zshift
                    
                    self.dsManager.setHighlight(self.highlight)
                    #self.dsManager.setFlipZY(self.flipZY, self.xshift, self.yshift, self.zshift, self.xscale, self.yscale, self.zscale)
                    self.dsManager.setFlipZY(self.flipZY)
                    
        else:
            self.queue.put(('local scene', 'you already have scene loaded'))
            pass
Exemplo n.º 3
0
    def loadScene(self, filename):
        # if material file exists copy needed files to needed locations
        self.scenedata = SceneDataManager(filename)
        if(self.scenedata.hasCopyFiles):
            #self.scenedata.copyFilesToDirs()
            self.scenedata.addResourceDirToRenderer()
            pass

        time.sleep(1)
        if(filename!=None):
            if(filename!=""):
                self.dotScene, self.dsManager = loader.load_dotscene(filename)
                self.dsManager.setHighlight(self.highlight)
                self.dsManager.setFlipZY(self.flipZY, self.xsift, self.ysift, self.zsift, self.xscale, self.yscale, self.zscale)
Exemplo n.º 4
0
    def loadScene(self, filename):
        # if material file exists copy needed files to needed locations
        self.scenedata = SceneDataManager(filename)
        if (self.scenedata.hasCopyFiles):
            #self.scenedata.copyFilesToDirs()
            self.scenedata.addResourceDirToRenderer()
            pass

        time.sleep(1)
        if (filename != None):
            if (filename != ""):
                self.dotScene, self.dsManager = loader.load_dotscene(filename)
                self.dsManager.setHighlight(self.highlight)
                self.dsManager.setFlipZY(self.flipZY, self.xsift, self.ysift,
                                         self.zsift, self.xscale, self.yscale,
                                         self.zscale)