Skip to content

Instantly share code, notes, and snippets.

View HaydenReeve's full-sized avatar
⚗️
Science!

Hayden Reeve HaydenReeve

⚗️
Science!
  • Verbrec
  • Perth, Australia
  • 12:52 (UTC +08:00)
View GitHub Profile
@HaydenReeve
HaydenReeve / Import PDN to Aseprite.lua
Created May 10, 2026 05:38
Import Paint.NET .pdn files into Aseprite while preserving supported bitmap layers.
-- Import PDN to Aseprite
-- Installation:
-- 1. Copy the whole "Import PDN to Aseprite" folder into your Aseprite scripts folder.
-- 2. In Aseprite, run File > Scripts > Rescan Scripts, or restart Aseprite.
-- 3. Run File > Scripts > Import PDN to Aseprite.
--
-- This script is pure Lua. It reads Paint.NET .pdn files directly and rebuilds
-- supported bitmap layers inside a new Aseprite sprite.
--
-- Embedded parser/decompression logic is adapted from two MIT-licensed projects:
@HaydenReeve
HaydenReeve / Decompress to True-Scale.lua
Last active May 30, 2026 10:23
Aseprite Decompress to True-Scale
-- Decompress to True-Scale V4
-- Install:
-- 1. Save this file as "Decompress to True-Scale V4.lua".
-- 2. Copy it into %APPDATA%\Aseprite\scripts.
-- 3. In Aseprite, run File > Scripts > Rescan Scripts, or restart Aseprite.
-- 4. Run File > Scripts > Decompress to True-Scale V4.
local COMMAND_TITLE = "Decompress to True-Scale V4"
local DEFAULT_K_COLORS = 17
local OUTPUT_LAYER_NAME = "Decompress to True-Scale V4"
@HaydenReeve
HaydenReeve / Export For FoundryVTT.lua
Last active May 30, 2026 10:23
Aseprite Export For FoundryVTT script
-- Export For FoundryVTT
-- Installation:
-- 1. Save this file as "Export For FoundryVTT.lua".
-- 2. Copy it into your Aseprite scripts folder:
-- Windows: %APPDATA%\Aseprite\scripts
-- macOS: ~/Library/Application Support/Aseprite/scripts
-- Linux: ~/.config/aseprite/scripts
-- 3. Create the "scripts" folder if it does not exist yet.
-- 4. In Aseprite, run File > Scripts > Rescan Scripts, or restart Aseprite.
-- 5. Run the script from File > Scripts > Export For FoundryVTT.
@HaydenReeve
HaydenReeve / Roll20 Map Export.js
Last active March 8, 2026 07:13 — forked from seleb/roll20 map save.js
script for exporting roll20 maps to an image
/** script for exporting roll20 maps to an image
how to use:
1. open your roll20 game to the page you want to save
2. open your browser's developer tools
3. copy-paste this entire file in the console
4. hit enter
5. wait for map to save and download automatically
notes:
- your UI will rapidly flash for a couple seconds when this is run, as it is quickly scrolling through the map and saving it in chunks
@HaydenReeve
HaydenReeve / SDXLTurboHiRez.json
Last active November 30, 2023 16:23
An example workflow of using HiRez Fix with SDXL Turbo for great results
{
"last_node_id": 74,
"last_link_id": 192,
"nodes": [
{
"id": 45,
"type": "Reroute",
"pos": [
960,
-780