- Bijou 150 x 10 pixels icons : http://bijou.im/
- http://thenounproject.com/
- 50 amazing free icons sets : http://webdesignledger.com/freebies/50-amazing-free-icon-sets
- Smashing Mag : 35 (Really) Incredible Free Icon Sets : http://www.smashingmagazine.com/2008/03/06/35-really-incredible-free-icon-sets/
- 30 free icons packs from the Dribble community : http://line25.com/articles/30-free-icon-packs-from-the-dribbble-community
- 32 elegant and minimalist icon packs : http://psd.fanextra.com/articles/32-elegant-and-minimalist-icon-packs/
- POI icons : http://mapbox.com/maki/
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 functools import wraps | |
from maya import cmds | |
def undo(func): | |
""" Puts the wrapped `func` into a single Maya Undo action, then | |
undoes it when the function enters the finally: block """ | |
@wraps(func) | |
def _undofunc(*args, **kwargs): | |
try: | |
# start an undo chunk |
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
// Converts a C++ map to a python dict | |
template <class K, class V> | |
boost::python::dict toPythonDict(std::map<K, V> map) { | |
typename std::map<K, V>::iterator iter; | |
boost::python::dict dictionary; | |
for (iter = map.begin(); iter != map.end(); ++iter) { | |
dictionary[iter->first] = iter->second; | |
} | |
return dictionary; | |
} |
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
# Get all nodes of type Read | |
readnodes = nuke.allNodes('Read') | |
for readnode in readnodes: | |
print readnode | |
# List all knobs for selected node | |
print( nuke.toNode('Read1') ) | |
# List all knobs for specific node | |
print( nuke.selectedNode() ) |
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
qApp.setStyle("Fusion") | |
dark_palette = QPalette() | |
dark_palette.setColor(QPalette.Window, QColor(53, 53, 53)) | |
dark_palette.setColor(QPalette.WindowText, Qt.white) | |
dark_palette.setColor(QPalette.Base, QColor(25, 25, 25)) | |
dark_palette.setColor(QPalette.AlternateBase, QColor(53, 53, 53)) | |
dark_palette.setColor(QPalette.ToolTipBase, Qt.white) | |
dark_palette.setColor(QPalette.ToolTipText, Qt.white) |
The following is a quick guide to get tthis working on various Linux distros. As a side note, if you have Chrome installed alongside Vivaldi, Netflix should also work after making these changes.
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
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class MeshCut | |
{ | |
private static Plane blade; | |
private static Transform victim_transform; | |
private static Mesh victim_mesh; |
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
""" | |
Simplified version of original forum post: | |
http://tech-artists.org/forum/showthread.php?4547-Passing-uchar-pointer-with-PySide-in-Maya | |
""" | |
import ctypes | |
import maya.OpenMaya as om | |
from PySide import QtCore, QtGui | |
# Build a test MImage |
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
import Foundation | |
import AudioToolbox | |
class KKSimplePlayer: NSObject { | |
var URL: NSURL | |
var URLSession: NSURLSession! | |
var packets = [NSData]() | |
var audioFileStreamID: AudioFileStreamID = nil | |
var outputQueue: AudioQueueRef = nil | |
var streamDescription: AudioStreamBasicDescription? |
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
import time | |
import threading | |
class BaseThread(threading.Thread): | |
def __init__(self, callback=None, callback_args=None, *args, **kwargs): | |
target = kwargs.pop('target') | |
super(BaseThread, self).__init__(target=self.target_with_callback, *args, **kwargs) | |
self.callback = callback | |
self.method = target |
OlderNewer