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 / 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
/* 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 / 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
@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 / 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