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: bb_setup { | |
use rvtypes; | |
use rvui; | |
use commands; | |
use app_utils; | |
use extra_commands; | |
documentation: """ | |
BaseblackMinorMode adds keybindings and other funky stuff like that to the | |
session. |
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 os | |
import xml.etree.ElementTree as ET | |
DEBUG = 0 | |
strXML = """<?xml version='1.0'?> | |
<dir> | |
<dir name="images"> | |
<dir name="nuke" /> | |
<dir name="maya" /> |
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
// | |
// This is a simple example that uses face-varying u,v data | |
// with uniform catmull-clark subdivision using OpenSubdiv | |
// | |
// c++ -o displayOsdFVarCoord displayOsdFVarCoord.cpp -I$OPENSUBDIV/include -L$OPENSUBDIV/lib -losdCPU -lglut -lGL | |
// | |
#if defined(__APPLE__) | |
#include <GLUT/glut.h> | |
#else |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import sys | |
from PyQt4 import QtGui, QtCore | |
from PyQt4.phonon import Phonon | |
from functools import partial | |
import skimage.io as io |
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 PyQt4 import QtCore,QtGui | |
from tableModel import TableModel | |
#import tableModel.TableModel as PaletteTableModel | |
import sys | |
class PaletteListModel(QtCore.QAbstractListModel): | |
def __init__(self, colors = [], parent = None): | |
super(PaletteListModel,self).__init__(parent) | |
self.__colors = colors |
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 | |
Expression { | |
expr0 (isnan(r)||isinf(r))?r(x+xo,y+yo):r | |
expr1 (isnan(g)||isinf(g))?g(x+xo,y+yo):g | |
expr2 (isnan(b)||isinf(b))?b(x+xo,y+yo):b | |
expr3 (isnan(a)||isinf(a))?a(x+xo,y+yo):a | |
name Expression4 | |
selected true |
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
{% extends 'base.html' %} | |
{% import 'macros.html' as macros %} | |
{% block content %} | |
<div class="row"> | |
<div class="col-xs-12 col-md-3 col-sm-4 col-sm-offset-4 col-md-offset-4 col-lg-3 col-lg-offset-4"> | |
<div class="login-message"> | |
Login to AwesomeService! | |
</div> | |
{% call macros.render_form(form, action_url=url_for('login_view'), action_text='Login', | |
class_='login-form') %} |
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 nuke,os | |
IMPULSE_FILTER_ENUM = 0 | |
__version__ = (0,0,1) | |
def grow(): | |
""" | |
Will make a Crop node that crops the frame to the union of the animated BBox of the nude currently selected. | |
For example, if you have a Tracker node that stabilizes an image this function will grow your bounding box | |
to include the whole stabilized image | |
""" |
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
# This searches for a sequence of characters | |
import os | |
def checkForDir(searchDirs, partialOrFullDirNameToFind): | |
for searchDir in searchDirs: | |
for directory in os.listdir(searchDir): | |
if partialOrFullDirNameToFind in directory.lower(): | |
foundDirectories.append(searchDir + directory) | |
return str(foundDirectories[len(foundDirectories)-1]) |
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
# Copy-pasted from http://www.mattmurrayanimation.com/using-json-to-store-node-information-in-maya/ | |
import json | |
import pymel.core as pm | |
def store(name, objs): | |
pose={} | |
ctrls=[] | |
for o in objs: |
OlderNewer