Skip to content

Instantly share code, notes, and snippets.

@andrewbunday
andrewbunday / cdl2ccc.py
Created August 19, 2011 15:40
A Simple extractor to parse a valid xml based CDL and convert it into a simplified ColorCorrectionCollection xml file.
#!/usr/bin/env python
#
# Author: Andrew Bunday
# Date: 19/08/11
#
# A Simple extractor to parse a valid xml based CDL and convert it into
# a simplified ColorCorrectionCollection xml file.
import xml.etree.ElementTree
from xml.etree.ElementTree import XMLParser, ElementTree, Element
@andrewbunday
andrewbunday / compressor.py
Created March 1, 2012 16:48
This is how little I trust Compressor's Command Line Interface.
#!/usr/bin/env python
"""
Compressor wrapper script.
"""
import os
import sys
import re
import argparse
import subprocess
import logging
@andrewbunday
andrewbunday / gist:1358794
Created November 11, 2011 18:30
Greenlet based PyQt and Flask application
#!/usr/bin/env python
import sys
import time
from flask import Flask
from PyQt4 import QtCore, QtGui, QtWebKit
import gevent.wsgi
@andrewbunday
andrewbunday / toggleAnamorphic.mu
Created March 20, 2012 12:55
Toggle anamorphic unsqueeze in RV
module: bb_setup {
use rvtypes;
use rvui;
use commands;
use app_utils;
use extra_commands;
documentation: """
BaseblackMinorMode adds keybindings and other funky stuff like that to the
session.
#include <FastLED.h>
#define NUM_LEDS 23
#define BRIGHTNESS_LEDS 84 // set within 0-100 for max brightnetss
//#define MAX_CYCLES 3
#define DATA_PIN 1 // pin the data line is connected to
// Define the array of leds
CRGB leds[NUM_LEDS];
@andrewbunday
andrewbunday / renderSubmitter.py
Last active December 12, 2015 12:18
Someone fucking hates me
pymel.formLayout(self.form, e=True,
attachForm=[
(self.location, "top", 0),
(self.location, "left", 0),
(self.location, "right", 0),
(self.jobNameText, "top", 25),
(self.jobNameText, "left", 5),
@andrewbunday
andrewbunday / gist:4650776
Last active December 11, 2015 19:48
GSettings Overrides For Desktop Nirvana.
#mouse focus milarky
[org.gnome.desktop.wm.preferences]
focus-mode='sloppy'
auto-raise=True
auto-raise-delay=500
@andrewbunday
andrewbunday / motd
Created November 13, 2012 09:48
hostname in motd
|^ | ~|~ ( |-| ]3 |_ /\ ( /<
___ ,---, ,--,
,-.----. ,--, ,--.'|_ ,--.' | ,---, ,--.'|
\ / \ ,--.'| | | :,' | | : ,---,.,---.'| | | :
| : || |, : : ' : : : : ,' .' || | : : : '
| | .\ :`--'_ .;__,' / ,---. : | |,--.,---.' ,: : : | ' |
. : |: |,' ,'| | | | / \ | : ' || | |: |,-.' | |
@andrewbunday
andrewbunday / versions.cfg
Created March 16, 2012 16:29
Development Version Names
Ambient
Bluegrass
Classical
Dubstep
Electro
Funk
Garage
HipHop
Indie
Jazz
@andrewbunday
andrewbunday / userSetup.py
Created December 7, 2011 18:31
This kinda thing really gets on my wick. Sometimes a plugin comes along which doesn't source it's own shelves. When that happens you have to hunt around in the file system to load the shelf. So instead popping this file into the scripts directory of the p
import maya
def bbLoadShelf(name, filepath=""):
mainShelfLayout = maya.mel.eval('global string $gShelfTopLevel; string $tmp=$gShelfTopLevel;')
labels = maya.cmds.tabLayout(mainShelfLayout, query=True, tabLabel=True)
if not name in labels:
maya.mel.eval('addNewShelfTab "%s"' % name)
maya.utils.executeDeferred( bbLoadShelf('MyPlugin')