extract course

This commit is contained in:
coco875
2024-02-29 16:17:26 +01:00
parent 7a218f45a9
commit 8f7aaaea9d
4 changed files with 19 additions and 3 deletions
+1
View File
@@ -0,0 +1 @@
blender --python tools/blender_extension/fast64_run.py
+13 -1
View File
@@ -1,4 +1,16 @@
import sys
import os
import bpy
sys.path.append('tools')
import fast64
fast64.register()
fast64.register()
dir_path = os.path.dirname(os.path.realpath(__file__))
dir_path = dir_path.replace("\\", "/")
dir_path = os.path.dirname(dir_path)
dir_path = os.path.dirname(dir_path)
print(dir_path)
bpy.context.scene.gameEditorMode = "MK64"
bpy.context.scene.DLImportName = "d_course_rainbow_road_dl_16220"
bpy.context.scene.DLImportPath = dir_path+"/courses/rainbow_road/course_data.inc.c"
bpy.context.scene.DLImportBasePath = dir_path
+4 -1
View File
@@ -13,7 +13,10 @@ if not os.path.exists("models"):
models = json.load(open("tools/3d_models.json"))
blender = "c:/Program Files/Blender Foundation/Blender 4.0/blender.exe"
if os.name == "nt":
blender = "c:/Program Files/Blender Foundation/Blender 4.0/blender.exe"
else:
blender = "blender"
args_blender = [
"--background",