Skip to content

Instantly share code, notes, and snippets.

View SuperFromND's full-sized avatar
💾
insert disk 1 of 1,524,904 to continue

Super SuperFromND

💾
insert disk 1 of 1,524,904 to continue
View GitHub Profile
@SuperFromND
SuperFromND / modnao_fix_imported_models.py
Created April 6, 2024 22:52
Blender Python: Cleanup Modnao Model Imports
# Script by SuperFromND. Last updated 4/6/2024
# This was written to clean up exported model data from ModNao, a Sega Dreamcast model ripping website.
# License: CC0/WTFPL/Unlicense/whatever else you prefer to mean "public domain".
# No warranty or liability, do whatever you want, yada yada etc.
import bpy
# ========================================================
# Change this value if you're getting weird results from the merge-by-distance.
# Higher values = more aggressive merging.
@SuperFromND
SuperFromND / bpy_normalize_image_texture_materials.py
Created April 6, 2024 20:02
Blender Python: Normalize materials to Image Texture -> BSDF -> Output
# Script by SuperFromND.
# This was written to partially clean up exported model data from ModNao, a Sega Dreamcast model ripping website.
# License: CC0. Go nuts!
import bpy
for obj in bpy.data.objects:
if obj.type == 'MESH' and not obj.active_material == None:
for item in obj.material_slots:
mat = bpy.data.materials[item.name]
if mat.use_nodes:
@SuperFromND
SuperFromND / incident.js
Created May 25, 2023 18:23
Internet Incident Generator
/*
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
@SuperFromND
SuperFromND / test.bat
Created March 14, 2023 17:09
Open Manifold - Build & Test Wrapper Script for Windows
@echo off
:4
make -C %~dp0
:m
ECHO 1. Run Game
ECHO 2. Run Game w/ Debug
ECHO 3. Open Folder
ECHO 4. Re-Compile EXE
ECHO 5. Make Background Test