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 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 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 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 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 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 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 argparse | |
import socket | |
import tempfile | |
from avalon import io, api | |
from launcher import lib | |
def wait_for_maya_boot(): |
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 re | |
import sys | |
import shutil | |
def get_size(start_path): | |
total_size = 0 | |
for dirpath, dirnames, filenames in os.walk(start_path): | |
for f in filenames: |
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
""" | |
Select the camera you want to cut from, then the geometry you want | |
to be cut. | |
""" | |
import maya.cmds as cmds | |
import pymel.core as pm | |
def cut_to_frustum(camera, geometry): | |
# Gather relevant camera attributes. |
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
""" | |
Select all meshes that needs to be mirrored. | |
Script produces a mirror locator with a plane for visualizing. | |
""" | |
import pymel.core as pm | |
selection = pm.ls(selection=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 subprocess | |
import logging | |
import sys | |
import argparse | |
import webbrowser | |
import traceback | |
import json | |
import ftrack_api |
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
""" | |
Select the node to analyze for held frames. | |
Outputs a FrameHold node with animation synced to the held frames. | |
"incremental" > If True only increment held values by 1. If False held values are the frames. | |
"operation" > choice between "Auto Crop" and "Avg Intensities". Different footage can require different operations. If one operation misses a frame movement, then try the other. | |
""" | |
import nuke |
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 sys | |
import subprocess | |
def get_size(start_path): | |
total_size = 0 | |
for dirpath, dirnames, filenames in os.walk(start_path): | |
for f in filenames: | |
fp = os.path.join(dirpath, f) |