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 / 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
@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 <[email protected]>
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 / 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 / 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 / magix_vegas_14_export_regions_as_srt_subtitles.cs
Last active July 23, 2024 17:19
Magix Vegas Pro 14: Export Regions As Subtitles (with .SRT support)
/**
* You can use this script to export Vegas regions in the .sub format
* for use in DVDA as subtitles. This script can aslo export regions
* as tab separated text.
*
* This script has been modified to add .SRT support in addition to the above two.
*
* To use this script:
*
* 1) Create named Vegas regions.
@SuperFromND
SuperFromND / bpy_animate_planes_as_sequence.py
Last active March 10, 2025 11:15
Blender Python: Animate Selected Image Planes
# Script written by SuperFromND. CC0. Do whatever you want!
# Written for Blender 4.2.3 LTS, but should work in older versions just fine.
# This script takes the selected objects (assumed to be image planes stacked on top of eachother)
# and generates keyframe data such that each object will "animate" by being scaled up and down
# for a set duration in sequence. This effectively emulates an image sequence/animation.
# This script was designed mainly for stage creators and 3D modelling work for the Ikemen GO fighting game engine.
# This is because we use the glTF format, which doesn't support animated textures of any kind.
@SuperFromND
SuperFromND / js_top_ten_sonic_games_generator.js
Created March 17, 2025 00:51
JavaScript: Print ten random Sonic game titles, as if it was a "Top 10" list
var list_of_games = [
"Dr Robotniks Mean Bean Machine",
"Knuckles Chaotix",
"SegaSonic Cosmo Fighter Galaxy Patrol",
"SegaSonic Cotton Candy Scramble",
"SegaSonic Popcorn Shop",
"SegaSonic the Hedgehog",
"Shadow the Hedgehog",
"Sonic & All-Stars Racing Transformed",
"Sonic & Sega All-Stars Racing",