This guide assumes a fresh install of Mac OSX 10.7 Lion.
This file contains 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 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
module Jekyll | |
class MathJaxBlockTag < Liquid::Tag | |
def render(context) | |
'<script type="math/tex; mode=display">' | |
end | |
end | |
class MathJaxInlineTag < Liquid::Tag | |
def render(context) | |
'<script type="math/tex">' | |
end |
This file contains 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
p = nukescripts.panels.PythonPanel() | |
# Accessible via the knob name (not the UI string \o/) | |
p.addKnob(nuke.String_Knob("start", "Staaaart value")) | |
# Or accessible via the knob object | |
or_this_way = nuke.String_Knob("finish", "Finish value. And it's not used for the UI!") | |
p.addKnob(or_this_way) | |
p.showModalDialog() |
This file contains 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
FILE SPACING: | |
# double space a file | |
sed G | |
# double space a file which already has blank lines in it. Output file | |
# should contain no more than one blank line between lines of text. | |
sed '/^$/d;G' |
This file contains 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
"""Based on Javascript from | |
http://madebyevan.com/dft/ | |
This may be wrong, but seems to do what I'd expect... | |
""" | |
from __future__ import division | |
import sys | |
import math |
This file contains 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
"""PoC code to reverse-engineer an unknown colour-matrix applied to a | |
set of know pixel values | |
Moved to: | |
https://github.com/dbr/colourstuff/blob/master/lib/python/colourstuff/determine_colour_matrix.py | |
""" | |
import math | |
import array | |
import time |
This file contains 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
set cut_paste_input [stack 0] | |
version 6.3 v5 | |
push $cut_paste_input | |
Group { | |
name Group1 | |
knobChanged "\nn = nuke.thisNode()\nas_str = n\['look_as_str'].value()\nn\['look'].setEnabled(not as_str)\nn\['look_str'].setVisible(as_str)\n\nif as_str and n\['look_str'].value() == \"\":\n n\['look_str'].setValue(n\['look'].value())\n" | |
selected true | |
xpos 140 | |
ypos -56 | |
addUserKnob {20 User l OCIOLookTransformTest} |
This file contains 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 the seemingly undocumented IRIDAS .look format to .csp | |
""" | |
import re | |
import os | |
import sys | |
import struct | |
import binascii | |
import xml.etree.ElementTree as ET |
An introduction to curl
using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
OlderNewer