This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """Pong. | |
| In Nuke. | |
| """ | |
| import nuke | |
| import time | |
| from random import random | |
| import threading |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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__() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 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 } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| kernel FacingRatioKernel : ImageComputationKernel<ePixelWise> { | |
| Image<eRead, eAccessPoint, eEdgeClamped> position; //image to show position the line | |
| Image<eRead, eAccessPoint, eEdgeClamped> normal; //image to show normal the line | |
| Image<eWrite> dst; //the output image | |
| //The process function is run at every pixel to produce the output. | |
| void process() { | |
| SampleType(position) p = position(); | |
| SampleType(normal) n = normal(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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", |
OlderNewer