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
| 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
| /* 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
| # 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
| # 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
| """Pong. | |
| In Nuke. | |
| """ | |
| import nuke | |
| import time | |
| from random import random | |
| import threading |
NewerOlder