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 sys | |
import argparse | |
import logging | |
import os | |
import getpass | |
import pprint | |
import subprocess | |
import ftrack |
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 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 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 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 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 maya.cmds as cmds | |
import pymel | |
import pymel.core | |
from PySide import QtGui | |
class Example(QtGui.QWidget): | |
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 pymel | |
import traceback | |
def place_highlight(cam, obj): | |
""" Creates a highlight rig for placing highlights on an object | |
""" | |
parent_loc = pymel.core.spaceLocator() | |
up_vector = pymel.core.spaceLocator() | |
aim_loc = pymel.core.spaceLocator() |
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 | |
items = ['polySurfaceShape15'] | |
node = nuke.selectedNode() | |
scene_view = node['scene_view'] | |
scene_view.setSelectedItems([]) | |
selection = [] | |
for item in scene_view.getAllItems(): | |
for split in item.split('/'): |
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 difflib | |
import nuke | |
import nukescripts | |
class KnobsPanel(nukescripts.PythonPanel): | |
def __init__(self, knobs): | |
nukescripts.PythonPanel.__init__(self, 'KnobsPanel') |
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
""" | |
Select the geometry to make the renderlayers from. | |
Will find all the materials (lambert), make a renderlayer per material only showing that material. | |
""" | |
import traceback | |
import pymel.core | |
selection = pymel.core.ls(selection=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
import traceback | |
import pymel.core | |
import maya.mel | |
def importAnim(): | |
sel = pymel.core.ls(selection=True) | |