Пример #1
0
 def _dumpOptions(self):
     debug("\n[options]")
     debug("   Create Scene: " + ("True" if self.gCreateScene else "False"))
     debug(" Base Directory: " + self.gBaseDir)
     debug("Scene Directory: " + self.gSceneDir)
     debug(" Mesh Directory: " + self.gMeshDir)
     debug("Image Directory: " + self.gTexDir)
     debug("     meshOutDir: " + iUtils.defScriptOptions["meshOutDir"])
     debug("      texOutDir: " + iUtils.defScriptOptions["texOutDir"])
     debug("         Binary: " + ("True" if self.gBinary else "False"))
     debug(" Export Cameras: " + ("True" if self.gExportCameras else "False"))
     debug("  Export Lights: " + ("True" if self.gExportLights else "False"))
     debug(" Export Physics: " + ("True" if self.gExportPhysics else "False"))
     debug("    Copy Images: " + ("True" if self.gCopyImages else "False"))
     debug("Image Extension: " + ("Original" if self.gTexExtension == ".???" else self.gTexExtension))
     debug("  Selected Only: " + ("True" if self.gSelectedMeshesOnly else "False"))
     debug("   Irrlicht Ver: " + str(self.gIrrlichtVersion))
     debug("  iwalktest Env: " + iGUI.gWalkTestPath)
     debug("   imeshcvt Env: " + iGUI.gMeshCvtPath)
     debug(
         "  iwalktest Cmd: "
         + iGUI.gWalkTestPath.replace("$1", iUtils.flattenPath(self.gSceneFileName)).replace(
             "$2", iUtils.filterPath(self.gBaseDir)
         )
     )
Пример #2
0
def runWalkTest(sceneFileName):


    directory = Blender.sys.dirname(gWalkTestPath)

    cmdline = gWalkTestPath.replace('$1',
            iUtils.flattenPath(sceneFileName)).replace('$2',iUtils.filterPath(gBaseDir))

    subprocess.Popen(cmdline, shell=True, cwd=directory)
Пример #3
0
    def _convertMesh(self, iname, oname):

        iGUI.updateStatus("Creating Binary Mesh: " + oname)

        meshcvt = iGUI.gMeshCvtPath
        directory = Blender.sys.dirname(meshcvt)

        cmdline = meshcvt + " -v " + self.gIrrlichtVersion + ' -i "' + iname + '"  -o "' + oname
        cmdline += '" -a "' + iUtils.filterPath(self.gBaseDir) + '"'

        print(cmdline)

        try:
            subprocess.call(cmdline, shell=True, cwd=directory)
        except:
            self.gFatalError = "Error Converting To Binary Mesh.  Check imeshcvt setup."