mirror of
https://github.com/n64decomp/mk64
synced 2026-06-01 01:09:04 -04:00
6da6598cc6
* start making models extraction with blender * finishing extract model * Update fast64 * extract course * Update fast64 * Update fast64 * simplify import of course_displaylists and course_textures and remplace adress with texture * Update fast64 * change data format and simplify the thread queue * move in a blender folder * remove fast64 * re add fast64 * add model_extract and fast64_blender in makefile * multithread with make file split the models into multiple json and add course segment * Update fast64 * remove old model_extract * remove the error when he don't find blender * start rename around course section * update submodule fast64 * fix compilation issue and add some model to extract * Update fast64 * remove fast64 * re add fast64 * update submodule * fix compilation issue * add other collision gfx and prepare reorganise file * re arrange json * Create README.MD * Update README.MD * Update README.MD * update fast64 --------- Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
19 lines
754 B
Python
19 lines
754 B
Python
import sys
|
|
import os
|
|
import bpy
|
|
sys.path.append('tools/blender')
|
|
import fast64
|
|
from fast64.fast64_internal.mk64 import MK64_Properties
|
|
from fast64.fast64_internal.mk64.f3d.properties import MK64CourseDLImportSettings
|
|
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)
|
|
|
|
bpy.context.scene.gameEditorMode = "MK64"
|
|
mk64_settings: MK64_Properties = bpy.context.scene.fast64.mk64
|
|
import_settings: MK64CourseDLImportSettings = mk64_settings.course_DL_import_settings
|
|
import_settings.name = "d_course_rainbow_road_dl_D8"
|
|
import_settings.path = dir_path+"/courses/rainbow_road/course_data.c"
|
|
import_settings.base_path = dir_path |