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
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 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
#include <stdio.h> | |
#include <math.h> | |
int main(){ | |
float r = powf(4.0/9.0, (1.0/2.6)); | |
printf("%.12f\n", r); | |
} |
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 python2 | |
"""Python script to prefilter environment maps, computing spherical | |
harmonic lighting coefficients. | |
Python port of the prefilter.c code from | |
http://graphics.stanford.edu/papers/envmap/ | |
""" | |
import math |
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
"""Test of using graphviz's "dot" layout algorithm to arrange a Nuke node-graph | |
Example: http://i.imgur.com/f1mK7.png | |
Left is dot, right is Nuke's builtin nuke.autoplace | |
""" | |
import nuke | |
# http://code.google.com/p/pydot/ | |
import pydot |
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
"""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 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
<!doctype html> | |
<!-- Tiny tweak of http://madebyevan.com/dft/ so it does not resample the function on mouse-move | |
<html><head> | |
<title>Discrete Fourier Transform Demo - by Evan Wallace</title> | |
<style type="text/css"><!-- | |
* { | |
font: 13px 'Segoe UI', sans-serif; | |
} | |
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
"""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 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
set cut_paste_input [stack 0] | |
version 6.2 v3 | |
push $cut_paste_input | |
Axis2 { | |
name Axis1 | |
selected true | |
xpos -107 | |
ypos -135 | |
} | |
Camera2 { |
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
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 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
#! /Applications/Nuke6.2v1-32/NukeX6.2v1.app/../Nuke6.2v1.app/Contents/MacOS/Nuke6.2v1 -nx | |
version 6.2 v1 | |
define_window_layout_xml {<?xml version="1.0" encoding="UTF-8"?> | |
<layout version="1.0"> | |
<window x="0" y="22" w="1440" h="874" screen="0"> | |
<splitter orientation="1"> | |
<split size="910"></split> | |
<splitter orientation="1"> | |
<split size="40"></split> | |
<dock id="" hideTitles="1" activePageId="Toolbar.1"> |