Alembic 1.5.1 Boost 1.49 OpenEXR 2.0.1 HDF5 1.8.9
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 math | |
import Image | |
import Levenshtein | |
class BWImageCompare(object): | |
"""Compares two images (b/w).""" | |
_pixel = 255 |
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
def hideAllViewerQtInfosWidgets(): | |
try: | |
import PySide.QtGui as QtGui | |
parentApp = QtGui.QApplication.allWidgets() | |
parentName = "Viewer" | |
name = "/" | |
parentViewer = None | |
for parent in parentApp: |
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 PyQt4 import QtCore, QtGui | |
class Window(QtGui.QDialog): | |
def __init__(self): | |
super(Window, self).__init__() | |
self.resize(200,100) | |
self._new_slider_min = .1 | |
self._new_slider_max = .9 |
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 python | |
import csv | |
import collections | |
import re | |
import json | |
import requests | |
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 PySide import QtGui | |
class CustomSortFilterProxyModel(QtGui.QSortFilterProxyModel): | |
""" | |
Implements a QSortFilterProxyModel that allows for custom | |
filtering. Add new filter functions using addFilterFunction(). | |
New functions should accept two arguments, the column to be | |
filtered and the currently set filter string, and should | |
return True to accept the row, False otherwise. |
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 PySide import QtGui, QtCore | |
def findDagWidget(): | |
stack = QtGui.QApplication.topLevelWidgets() | |
while stack: | |
widget = stack.pop() | |
if widget.windowTitle() == 'Node Graph': | |
# You should probably be a little safer with this return, but the actual DAG widget | |
# seems to be here consistently... if not, it should be the only child of 'widget' |
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/python | |
import sys | |
from PIL import Image | |
def avhash(im): | |
if not isinstance(im, Image.Image): | |
im = Image.open(im) | |
im = im.resize((8, 8), Image.ANTIALIAS).convert('L') | |
avg = reduce(lambda x, y: x + y, im.getdata()) / 64. |
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 finding Nuke's viewer widget, and intercepting the hardwired "c" shortcut and rewiring it to view the RGB channel | |
""" | |
from PySide import QtGui, QtCore | |
def findviewer(): | |
stack = QtGui.QApplication.topLevelWidgets() | |
viewers = [] | |
while stack: |
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 python | |
''' | |
Send an multipart email with HTML and plain text alternatives. The message | |
should be constructed as a plain-text file of the following format: | |
From: Your Name <[email protected]> | |
To: Recipient One <[email protected]> | |
Subject: Your subject line | |
--- |
OlderNewer