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 argparse | |
import socket | |
import tempfile | |
from avalon import io, api | |
from launcher import lib | |
def wait_for_maya_boot(): |
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 sys | |
import subprocess | |
def transcode_movies(path): | |
movie_files = [] | |
for root, dirs, files in os.walk(path): | |
for file in files: | |
if file.endswith("_review.mov"): |
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 json | |
import pymel.core | |
display_layers = {} | |
for layer in pymel.core.ls(type="displayLayer"): | |
display_layers[layer.name()] = {"members": []} | |
for node in layer.listMembers(): |
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 pymel.core | |
basename = os.path.basename(pymel.core.sceneName()) | |
filename = os.path.splitext(basename)[0] | |
directory = os.path.dirname(pymel.core.sceneName()) | |
# Find *.ffd folder starting with same name as current file |
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 pymel.core | |
basename = os.path.basename(pymel.core.sceneName()) | |
filename = os.path.splitext(basename)[0] | |
directory = os.path.dirname(pymel.core.sceneName()) | |
# Find *.deltamush folder starting with same name as current file |
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 pymel.core as pc | |
import mgear.rigbits.facial_rigger.eye_rigger | |
basename = os.path.basename(pc.sceneName()) | |
filename = os.path.splitext(basename)[0] | |
directory = os.path.dirname(pc.sceneName()) |
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 pymel.core as pc | |
from studiolibrarymaya import animitem | |
basename = os.path.basename(pc.sceneName()) | |
filename = os.path.splitext(basename)[0] | |
directory = os.path.dirname(pc.sceneName()) |
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 pymel.core as pc | |
import ngSkinTools.importExport | |
import mgear | |
basename = os.path.basename(pc.sceneName()) | |
filename = os.path.splitext(basename)[0] | |
directory = os.path.dirname(pc.sceneName()) |
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 read nodes to find latest version. | |
Initial search range for versions are 50 versions up. | |
""" | |
import nuke | |
import nukescripts | |
nodes = nuke.selectedNodes() |
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.core as pc | |
import os | |
for node in pc.ls(type="file"): | |
path = node.fileTextureName.get() | |
tx_path = os.path.splitext(path)[0] + ".tx" | |
if os.path.exists(tx_path): | |
node.fileTextureName.set(tx_path) |