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 pymel.core import * | |
import maya.OpenMaya as om | |
from imath import * | |
from alembic.Abc import * | |
from alembic.AbcGeom import * | |
import math | |
import alembic | |
def get_mesh_data(): |
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
/*eslint-disable */ | |
'use strict'; | |
angular.module('messagesApp', [ | |
'firebase' | |
]) | |
.constant('FirebaseUrl', 'https://pwfireslack.firebaseio.com/') | |
.controller('msgCtrl', ['$scope', 'Messages', function ($scope, Messages) { | |
$scope.messages = Messages.all; | |
$scope.captcha = undefined; |
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
status= dict( | |
hold=0, | |
omni=1, | |
notstarted=2, | |
wip=3, | |
inprogress=4, | |
pending=5, | |
normal=6, | |
proposed=7, | |
approved=8, |
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
# install: | |
# add to menu.py | |
import nuke | |
from PySide.QtGui import * | |
from PySide.QtCore import * | |
def getMainWindow(): | |
qApp = QApplication.instance() | |
for widget in qApp.topLevelWidgets(): |
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 nuke | |
def createShuffleEXR(gradeNodes): | |
sel =nuke.selectedNode() | |
chanList=[] | |
rr = sel.channels() | |
for i in rr: | |
temp = i.split('.') | |
if (len(chanList)) == 0: |
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 pymel.core import * | |
objs = ls(sl=1, type='mesh') | |
errors = [] | |
for obj in objs: | |
areas = {} | |
for f in obj.f: | |
a = round(f.getArea(),3) |
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 check_faces_in_the_same_place(sel=False): | |
objs = ls(sl=sel, type='mesh') | |
errors = [] | |
for obj in objs: | |
areas = {} | |
for f in obj.f: | |
a = round(f.getArea(),5) | |
if a in areas: | |
areas[a].append(f) |
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 render_current_frame_ogl(self): | |
import tempfile, random | |
d = tempfile.gettempdir() | |
f = join(d,'preview_image_%s' % random.randrange(10000, 99999)) + '.jpg' | |
rg = PyNode('defaultRenderGlobals') | |
dr = PyNode('defaultResolution') | |
old_format = rg.imageFormat.get() | |
rg.imageFormat.set(8) | |
playblast( | |
frame=currentTime(), |
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 render_current_frame_ai(self): | |
import tempfile, random | |
from arnold import * | |
d = tempfile.gettempdir() | |
fi = join(d,'preview_image_%s' % random.randrange(10000, 99999)) | |
fa = join(d,'preview_image_%s' % random.randrange(10000, 99999)) + '.ass' | |
rg = PyNode('defaultRenderGlobals') | |
dr = PyNode('defaultResolution') | |
ar = PyNode('defaultArnoldDriver') |