ssbucarlos / smash-ultimate-blender

Blender Plugin containing utilities for Smash Ultimate Models and Animations.
45 stars 9 forks source link

Test importing all in game models #199

Open ScanMountGoat opened 1 year ago

ScanMountGoat commented 1 year ago

This will allow easily testing the code for any errors on in game models. This includes Python exceptions or operator reported errors. https://docs.blender.org/api/current/info_tips_and_tricks.html#use-blender-without-it-s-user-interface

ScanMountGoat commented 1 year ago

blender --background --python script.py

import bpy

# Set file paths.
ssp = bpy.context.scene.sub_scene_properties
ssp.model_import_folder_path = "fighter/mario/model/body/c00"
ssp.model_import_numdlb_file_name = "model.numdlb"
ssp.model_import_numshb_file_name = "model.numshb"
ssp.model_import_nusktb_file_name = "model.nusktb"
ssp.model_import_numatb_file_name = "model.numatb"
ssp.model_import_nuhlpb_file_name = "model.nuhlpb"

# Import model.
bpy.ops.sub.model_importer()