Skip to content

Instantly share code, notes, and snippets.

View heavyimage's full-sized avatar
💭
Hacking the Gibson

Jesse Spielman heavyimage

💭
Hacking the Gibson
View GitHub Profile
@heavyimage
heavyimage / nuclearPong.py
Created June 28, 2016 14:07 — forked from dbr/nuclearPong.py
Pong. In Nuke.
"""Pong.
In Nuke.
"""
import nuke
import time
from random import random
import threading
@heavyimage
heavyimage / create_node_with_animated_gif.py
Last active March 21, 2018 15:49
stupid animated gifs in nuke nodes
# http://tylerart.com/sketchbook/22/12/2015/pyside-widgets-inside-a-nuke-gizmo
from Qt import QtWidgets, QtCore, QtGui
import nuke
class MyWidget(QtWidgets.QWidget):
def __init__(self, node):
super(self.__class__, self).__init__()
@heavyimage
heavyimage / visualize_ply.py
Created March 22, 2018 10:02
Visualize .ply files in nuke using an undocumented feature of the BakedPointCloud node
# TODO:
# detect .ply files written with a different order of pos / normals / colors
# more efficiently access the file in question!
# probably won't work on windows due to /tmp
import math
import time
import nuke
import random
/* Copyright Jesse Spielman 2014 */
rule decobox {
{s 1 0.7 0.7} box
{s 0.7 1 0.7} box
{s 0.7 0.7 1} box
{s 0.85} box
}
rule metatraceline w 6{ {s 0.01 0.01 1} traceline }
@heavyimage
heavyimage / ermagherd.py
Created January 20, 2019 00:22
ERMAGHERD the nuke interface
import re
class ermagerd:
""" https://gist.github.com/brianseitel/3267351 """
def __init__(self, arg1):
self.result = self.gherd(arg1)
def grab(self):
return self.result
from PIL import Image
from PIL import ImageFont
from PIL import ImageDraw
im = Image.open("scramble.png")
img_width, img_height = im.size
font = ImageFont.truetype("./Vera.ttf", 16)
def image_at_scale(scale):
""" Apply slitscan effect for a given scale factor """
// I don't know anything about javascript so this is probably v wrong
// Based on: https://github.com/dmstern/html2biblatex
javascript:"use strict";
(function(){
function copyToClipboard(text){
window.prompt("Copy to clipboard: Ctrl+C, Enter",text)
}
var title=document.title;
@heavyimage
heavyimage / install-mosh.sh
Created October 28, 2020 23:03 — forked from jaywilliams/install-mosh.sh
Compiling and running mosh on Dreamhost (Updated - 2018)
#!/usr/bin/env bash
# Thanks to @samsonjs for the cleaned up version:
# https://gist.github.com/samsonjs/4076746
PREFIX=$HOME/local
VERSION=1.3.2
# Create Source Directory
mkdir -p $PREFIX/src
# nShakeClone.py
#
# Recreates a shake style "uni-directional" clone
#
# Created by Jesse Spielman on 8/26/2010
def shakeClone():
EXCLUSION_LIST = ["xpos", "ypos", "help", "hide_input", "note_font_color",
"onCreate", "updateUI", "knobChanged", "note_font",
"tile_color", "selected", "autolabel", "process_mask",