some work on exporter

This commit is contained in:
Ziver Koc 2020-04-27 00:01:12 +02:00
parent 722fd26511
commit 6687ec186d
3 changed files with 15 additions and 10 deletions

View file

@ -29,14 +29,15 @@ task buildResources {
if (sourceFile.getName().endsWith(".blend")) {
println "Exporting: ${sourceFile}"
def targetFile = new File(
sourceFile.getAbsolutePath().replace(sourcePath.absolutePath, targetPath.absolutePath))
def tmpFile = sourceFile.getAbsolutePath().replace(sourcePath.absolutePath, targetPath.absolutePath)
tmpFile = tmpFile.replaceAll(".blend\$", ".fbx")
def targetFile = new File(tmpFile)
println " - Output: ${targetFile}"
// exec {
// executable "sh"
// args "-c", "blender.exe --background '${sourceFile}' --python 'blender-fbx-export.py'"
// }
exec {
executable "sh"
args "-c", "blender.exe --background '${sourceFile}' --python 'blender-export.py' -- '${targetFile}'"
}
}
}
}