Skip to content

Instantly share code, notes, and snippets.

View csprance's full-sized avatar
🐝

Chris Sprance csprance

🐝
View GitHub Profile
@csprance
csprance / get_selected_clip.py
Created February 18, 2019 02:23
Get selected clip path in modo
import modo
import lx
def get_selected_clip_filepath():
scene = modo.Scene()
[clip] = scene.selectedByType(lx.symbol.sITYPE_VIDEOSTILL)
filepath = clip.channel("filename").get()
return filepath
@csprance
csprance / README.md
Created January 27, 2019 04:46
SCRIPT-8
@csprance
csprance / CreateLODS.ms
Last active August 23, 2023 13:22
Lod Tool for CRYENGINE using 3ds max Maxscript and proOptimizer
-- Define the UI Rollout
try (destroyDialog EILodMaker) catch()
rollout EILodMaker "Lod Maker" width:150 height:250 (
label lbl_num_lods "Number of Lods"
spinner num_lods_spinner "" across:2 offset:[20,0] width:124.05 usePercentageWidth:true percentageWidth:82.7 enabled:true type:#integer range:[0,6,2]
checkbox chk_collapse "Collapse?" pos:[18,52] checked:false
group "Advanced Options" (
spinner spinner_lod1 "LOD 1" range:[0,100,50] type:#float
spinner spinner_lod2 "LOD 2" range:[0,100,24.5] type:#float
spinner spinner_lod3 "LOD 3" range:[0,100,11.4] type:#float
@csprance
csprance / OldServerSetup.md
Last active February 14, 2022 00:41
Miscreated dedicated server instructions. Deprecated

Self Hosted Servers

This is an alternate method of installing the server. You should instead install directly from the Steam Library During the entire beta phase of Miscreated self hosted servers are NOT officially supported and will mostly likely be changed during each update.

Due to the fact that self hosted server admins can adjust item spawns the Items tab on Amalgamated kiosks is disabled on self hosted servers - the Skins tab remains fully functional.

It's recommended server admins join our community Discord server for help: http://discord.gg/miscreated - Help requests go in the #self-hosted-help channel. It's also recommended players wishing to run a server use the Simplified Miscreated Server Setup script as that script sets up a server, and it keeps a server properly updated and running.

START INSTALL INSTRUCTIONS - CUSTOMIZE TO YOUR NEEDS

@csprance
csprance / ServerInstallInstructions.md
Last active January 23, 2024 09:21
Instructions for setting up a Miscreated Self Hosted Server

Self Hosted Servers

During the entire beta phase of Miscreated self hosted servers are NOT officially supported and will mostly likely be changed during each update.

Due to the fact that self hosted server admins can adjust item spawns the Items tab on Amalgamated kiosks is disabled on self hosted servers - the Skins tab remains fully functional.

It's recommended server admins join our community Discord server for help: http://discord.gg/miscreated - Help requests go in the #server-admin-help channel.

START INSTALL INSTRUCTIONS - CUSTOMIZE TO YOUR NEEDS

NOTE: This document describes the manual steps needed for setting up a Miscreated server. It is highly suggested most users instead use Spafbi's Simplified Miscreated Server Setup script to handle setup, updating, and running of the server.

@csprance
csprance / johnny-five-morse-code.ts
Last active December 8, 2018 18:00
Morse Code Arduino
import five, { Button } from 'johnny-five';
const alpha: { [k: string]: string } = {
'.-': 'A',
'-...': 'B',
'-.-.': 'C',
'-..': 'D',
'.': 'E',
'..-.': 'F',
'--.': 'G',
@csprance
csprance / nodemon.json
Created November 10, 2018 08:55
nodemon typescript config
{
"watch": ["src"],
"ext": "ts",
"ignore": ["src/**/*.spec.ts"],
"exec": "cross-env NODE_ENV=development ts-node --files --project tsconfig.json src",
"inspect": true,
"verbose": true
}
@csprance
csprance / bad-words.ts
Created November 7, 2018 19:30
bad-words-list
export default [
'reallyReallyBadTestWord',
'5h1t',
'5hit',
'anal',
'ar5e',
'ass',
'ass-fucker',
'asses',
'assfucker',
"""
@name: cryengine_setup.py
@author: Chris Sprance
@project: Miscreated
@description: Sets up an fbx from modo to be ready to export in maya
@instructions: Select top level group(s) hit button. fist bump
"""
import re
import maya.mel as mm
"""
===================================
Shaded & power normalized rendering
===================================
The Mandelbrot set rendering can be improved by using a normalized recount
associated with a power normalized colormap (gamma=0.3). Rendering can be
further enhanced thanks to shading.
The `maxiter` gives the precision of the computation. `maxiter=200` should