Skip to content

Instantly share code, notes, and snippets.

View loonaticx's full-sized avatar
🤠
Yeehaw

Erica M. ("Loonatic") loonaticx

🤠
Yeehaw
View GitHub Profile
@loonaticx
loonaticx / Package.pp
Created August 5, 2023 21:41
TTModels PPremake Package Example
//
// Package.pp
//
// This file defines certain configuration variables that are to be
// written into the various make scripts. It is processed by ppremake
// (along with the Sources.pp files in each of the various
// directories) to generate build scripts appropriate to each
// environment.
//
// This is the package-specific file, which should be at the top of
@loonaticx
loonaticx / Sources.pp
Created August 5, 2023 21:39
TTModels PPremake Config File Example
#define DIR_TYPE models
#define INSTALL_TO models/char
#define goofyCostumeAnims default neutral posedown posedown2 posedown3 \
walkStrut walkStrut2
#define nc_anims neutral
#define neutral_frames 1 154
@loonaticx
loonaticx / Makefile
Created August 5, 2023 21:39
TTModels PPremake Makefile Example
### Generated automatically by ppremake 1.26 from Sources.pp.
################################ DO NOT EDIT ###########################
all : \
Makefile audio sho tex mat \
C:/Users/Loonatic-V/player/ttmodels/src/maps PFS optchar optchar egg \
bam
audio :
@loonaticx
loonaticx / CIO_Installation.md
Created February 2, 2023 05:37
CIO Installation Guide
@loonaticx
loonaticx / FixUVNames.py
Created October 29, 2022 20:24
Removes defined UV names in eggfiles
"""
Use this to check for models with non-empty UVMap names (known to cause issues)
Usage:
python FixUVName.py problem.egg problem2.egg ...
"""
import os
import sys
@loonaticx
loonaticx / AnalyzeBamfiles.py
Created October 29, 2022 20:23
AnalyzeBamfiles
"""
AnalyzeBamfiles
Used p3bamboo library to comb through all the phase folders to collect information of all the bamfiles.
This is useless if all the bamfiles are built all at once.
Author: Loonatic
Date: 10/15/2022
"""
@loonaticx
loonaticx / Crush.py
Created October 17, 2022 02:28
pngcrusher
import subprocess
import os
import time
import sys
import psutil
import argparse
# https://manpages.ubuntu.com/manpages/focal/en/man1/pngcrush.1.html
parser = argparse.ArgumentParser()
@loonaticx
loonaticx / renderVectorUVs.py
Created October 13, 2022 06:10 — forked from JFlynnXYZ/renderVectorUVs.py
Code to convert a Maya Polygon object's UV's to an SVG render vector uvs
import maya.api.OpenMaya as om
import maya.cmds as cmds
import os.path
import svgwrite
STROKE_LINECAP = ("butt", "round", "square")
def check_reverse_line_drawn(newLineCoords, drawnLines):
@loonaticx
loonaticx / quizzy.py
Created January 20, 2022 23:25 — forked from quantumelixir/quizzy.py
Solve Quizzy's Word Challenge
#1. The input is a list of rings. Each ring is a list of letters.
#2. Once you choose a letter from ring k then you can only choose letters from
# ring k, k + 1, ... Outermost ring is ring 0. And ring depth increases inwards.
#3. points[k] is the points for getting the letter chr(k + ord('A'))
from bisect import bisect, bisect_left
from time import time
try:
import psyco
Quick and dirty extension(s) I made so that egg files are a little bit less boring to work with.
Installation
1) Download the xml file(s) and put them in %appdata%/Notepad++/userDefineLangs
2) If you are having issues with the dark theme, go to Settings>Style Configurator and check the "enable background colour" box.
3) Upon opening an egg file, go to Language tab and click on the Panda3D EGG Syntax. It should recognize any egg files and apply the color respectively.
https://i.imgur.com/DvVAE0u.png