Blender-O3D-IO-Public
Blender-O3D-IO-Public copied to clipboard
A plugin supporting blender 2.79.x-3.x.x for importing and exporting OMSI .sco, .cfg, and .o3d files
https://github.com/space928/Blender-O3D-IO-Public/blob/dd30231969ecf0acde33fa9f8598e22e364e5daa/o3d_io/io_omsi_tile.py#L176 ```python import math import os.path import time import bpy import struct from . import o3d_node_shader_utils, io_omsi_spline from .blender_texture_io import load_texture_into_new_slot def log(*args): print("[OMSI_Tile_Import]", *args) def do_import(context, filepath, import_scos, import_splines,...
############################################################## https://github.com/space928/Blender-O3D-IO-Public/blob/5fafb1729bbcf4aae21423b1361fd830c2eeebcc/o3d_io/o3d_cfg_parser.py#L149 ```python # ============================================================================== # Copyright (c) 2022 Thomas Mathieson. # ============================================================================== import os def log(*args): print("[O3D_CFG_Parser]", *args) def read_cfg(filepath): """ Reads the CFG file for a mesh and...
log("WARNING: Unsupported material property: " + prop + " used on " + mat_blender.name) https://github.com/space928/Blender-O3D-IO-Public/blob/5fafb1729bbcf4aae21423b1361fd830c2eeebcc/o3d_io/io_o3d_import.py#L392 ```python # ============================================================================== # Copyright (c) 2022 Thomas Mathieson. # ============================================================================== import time from math...
https://github.com/space928/Blender-O3D-IO-Public/blob/5fafb1729bbcf4aae21423b1361fd830c2eeebcc/o3d_io/io_o3d_import.py#L386 ```python # ============================================================================== # Copyright (c) 2022 Thomas Mathieson. # ============================================================================== import time from math import radians import bpy import os if not (bpy.app.version[0] < 3 and bpy.app.version[1] <...
https://github.com/space928/Blender-O3D-IO-Public/blob/5fafb1729bbcf4aae21423b1361fd830c2eeebcc/o3d_io/io_o3d_import.py#L380 ```python # ============================================================================== # Copyright (c) 2022 Thomas Mathieson. # ============================================================================== import time from math import radians import bpy import os if not (bpy.app.version[0] < 3 and bpy.app.version[1] <...
Allcolor allows material properties to be set to constant values https://github.com/space928/Blender-O3D-IO-Public/blob/5fafb1729bbcf4aae21423b1361fd830c2eeebcc/o3d_io/io_o3d_import.py#L363 ```python # ============================================================================== # Copyright (c) 2022 Thomas Mathieson. # ============================================================================== import time from math import radians import bpy...
https://github.com/space928/Blender-O3D-IO-Public/blob/5fafb1729bbcf4aae21423b1361fd830c2eeebcc/o3d_io/io_o3d_import.py#L362 ```python # ============================================================================== # Copyright (c) 2022 Thomas Mathieson. # ============================================================================== import time from math import radians import bpy import os if not (bpy.app.version[0] < 3 and bpy.app.version[1] <...
https://github.com/space928/Blender-O3D-IO-Public/blob/5fafb1729bbcf4aae21423b1361fd830c2eeebcc/o3d_io/io_o3d_import.py#L358 ```python # ============================================================================== # Copyright (c) 2022 Thomas Mathieson. # ============================================================================== import time from math import radians import bpy import os if not (bpy.app.version[0] < 3 and bpy.app.version[1] <...
mat_blender.blend_method = "BLEND" https://github.com/space928/Blender-O3D-IO-Public/blob/5fafb1729bbcf4aae21423b1361fd830c2eeebcc/o3d_io/io_o3d_import.py#L356 ```python # ============================================================================== # Copyright (c) 2022 Thomas Mathieson. # ============================================================================== import time from math import radians import bpy import os if not (bpy.app.version[0] < 3...
mat.specular_intensity = cfg_materials[key]["envmap"][0] ** 2 mat.specular_hardness = 1 / 0.01 https://github.com/space928/Blender-O3D-IO-Public/blob/5fafb1729bbcf4aae21423b1361fd830c2eeebcc/o3d_io/io_o3d_import.py#L343 ```python # ============================================================================== # Copyright (c) 2022 Thomas Mathieson. # ============================================================================== import time from math import radians import bpy...