Skip to content

Instantly share code, notes, and snippets.

View csprance's full-sized avatar
🐝

Chris Sprance csprance

🐝
View GitHub Profile
@csprance
csprance / xNormalHelpers.py
Created January 12, 2016 17:58 — forked from Farfarer/xNormalHelpers.py
Just a few helper bits for xNormal/python.
#!/usr/bin/env python
import lx
import subprocess
import os
# Paths for xNormal.
path_xnormal_basedir = r'C:\Program Files\Santiago Orgaz'
path_xnormal_exedir = r'\x64\xNormal.exe'
path_xnormal = r'C:\Program Files\Santiago Orgaz\xNormal 3.18.9\x64\xNormal.exe'
#!/usr/bin/env python
################################################################################
#
# open_bling_command_class.py
# Description: The Qt GUI for OpenBling
# Usage:
# Author: Chris Sprance Entrada Interactive
#
################################################################################
#!/usr/bin/env python
################################################################################
#
# explosivo_class.py
# Description: The class used for toggling a mesh morph from 100% to -100%
# Usage:
# Explosivo.toggle - toggles the explode map on the selected meshes
# Explosivo.toggle other_explode_morph_name - toggles the explode on the selected meshes
# but uses a custom named morph map
# (if nothing selected everything is selected)
#!/usr/bin/env python
################################################################################
#
# explosivo_class.py
# Description: The class used for toggling a mesh morph from 100% to -100%
# Usage:
# Explosivo.toggle - toggles the explode map on the selected meshes
# Explosivo.toggle other_explode_morph_name - toggles the explode on the selected meshes
# but uses a custom named morph map
# Explosivo.delete removes the morphs on all meshes instead of toggling them
@csprance
csprance / startup.py
Last active December 20, 2016 19:56
Drop this in editor/Python/plugins/csSimBrush/startup.py
# @author Chris Sprance
# @Description Open the window from Tools->csTools->csSimBrush
# select a brush and click Convert Brush To SimBrush and it will sim and fall
# Move the object and press simulate again to simualte again
# Click Convert SimBrush to Brush to convert the selected simBrush back to a regular brush
from CrySide import QtWidgets
import SandboxBridge
from sandbox import general
@csprance
csprance / ckeditor.js
Last active April 12, 2017 15:54
Directus CKEditor WYSIWYG
// Description: CKEditor Custom UI for Directus
// Author: Chris Sprance (Entrada Interactive) - www.csprance.com
// CKEditor Docs: http://docs.ckeditor.com/
define(['app', 'core/UIComponent', 'core/CustomUIView', 'core/t', 'core/overlays/overlays'], function (app, UIComponent, UIView, __t, Overlays) {
var Input = UIView.extend({
events: {},
template: 'ckeditor/input',
serialize: function () {
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# title :miscron.py
# description : Runs commands to a server
# author :Chris Sprance / Entrada Interactive
# usage : This script is CLI for server administaration to run it from a command line do:
# misrcon.py -i [ip] --port [admin port] -p [admin password] --command [command] --time [exec_time] --s [schedule]
# python_version :2.7.5
# ==============================================================================
import xmlrpclib
@csprance
csprance / textwriter.py
Last active October 20, 2017 19:26
Modo Script to write a bunch of letters
http://www.csprance.com/shots/letters_master.lxo
@csprance
csprance / MODO11.1.CFG
Created November 16, 2017 22:40
My Modo Setup. Hotkeys, Colors and layout setups as well as user vales. Stick this into %appdata%/Luxology/
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<import>resource:</import>
<import>module:Scripts</import>
<import>user:Configs</import>
<import>configs:</import>
<import>user:Scripts</import>
<import>scripts:</import>
<import>user:Kits</import>
<import>userkits:</import>