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 os | |
import maya.cmds as cmds | |
path = cmds.fileDialog2(dialogStyle=1, fileMode=3) | |
if path: | |
path = path[0] | |
sel = cmds.ls(selection=True) | |
for node in sel: |
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 os | |
import maya.cmds as cmds | |
path = cmds.fileDialog2(dialogStyle=1, fileMode=3) | |
if path: | |
path = path[0] | |
sel = cmds.ls(selection=True) | |
for node in sel: |
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 maya.cmds as cmds | |
def bakeShapeToBlendShape(node, start, end): | |
step = 1.0 / end | |
bs_node = cmds.duplicate(node, n=node + '_blendshape')[0] | |
cmds.currentTime(end) | |
copy = cmds.duplicate(node)[0] | |
bs = cmds.blendShape(bs_node)[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
import sys | |
import argparse | |
import logging | |
import os | |
import getpass | |
import pprint | |
import subprocess | |
import ftrack |
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 pymel.core as pc | |
import pymel.core.animation as pca | |
import pymel.core.nodetypes as pcn | |
import maya.mel | |
# create animation layer | |
if pc.ls(selection=True): | |
anim_layer = pca.animLayer(addSelectedObjects=True) | |
pc.rename(anim_layer, 'baked_secondary_keys') | |
anim_layer.override.set(True) |
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 pymel.core as pm | |
import maya.mel as mel | |
for node in pm.ls(type='stroke'): | |
cmd = 'applyPresetToNode "%s" "" "" "ghost" 1;' % node | |
mel.eval(cmd) | |
for node in pm.ls(type='brush'): | |
cmd = 'applyPresetToNode "%s" "" "" "ghost" 1;' % node | |
mel.eval(cmd) |
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 | |
import gspread | |
gc = gspread.login('LOGIN', 'PASSWORD') | |
wks = gc.open('Companies Contact') | |
worksheet = wks.worksheet('Input') |
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 maya.cmds as cmds | |
import Tapp.Maya.Red9.core.Red9_AnimationUtils as r9Anim | |
import Tapp.Maya.Red9.core.Red9_CoreUtils as r9Core | |
def switchRotationAxis(node, axis1, axis2, axis1Inverse, axis2Inverse): | |
#variables | |
temp = cmds.spaceLocator() |
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
//Maya ASCII 2014 scene | |
//Name: parentInverseOffset.ma | |
//Last modified: Tue, Apr 22, 2014 05:27:56 PM | |
//Codeset: 1252 | |
requires maya "2014"; | |
requires -nodeType "decomposeMatrix" -nodeType "composeMatrix" -nodeType "inverseMatrix" | |
-nodeType "transposeMatrix" "matrixNodes" "1.0"; | |
currentUnit -l centimeter -a degree -t pal; | |
fileInfo "application" "maya"; | |
fileInfo "product" "Maya 2014"; |
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 symmetry(edit, original): | |
mirror = mirrorBlendshape([edit],original)[0] | |
copy = cmds.duplicate(original)[0] | |
bldShp = cmds.blendShape(edit, mirror,copy)[0] | |
cmds.setAttr('%s.%s' % (bldShp, edit), 1) | |
cmds.setAttr('%s.%s' % (bldShp, mirror), 1) | |
symmetry = cmds.duplicate(copy)[0] | |
symmetry = cmds.rename(symmetry, original + '_symmetry') | |
cmds.delete(copy, mirror) |