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
from pxr import Usd, Plug, Tf | |
from collections import defaultdict | |
NICE_NAMES = { | |
"usdGeom": "Geometry", | |
"usdLux": "Lighting", | |
"mayaUsd_Schemas": "Maya Reference", | |
"usdMedia": "Media", | |
"usdRender": "Render", | |
"usdRi": "RenderMan", |
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
from pxr import Sdf, Usd | |
LIST_ATTRS = ['addedItems', 'appendedItems', 'deletedItems', 'explicitItems', | |
'orderedItems', 'prependedItems'] | |
def repath_properties(layer, old_path, new_path): | |
"""Re-path property relationship targets and attribute connections. | |
This will replace any relationship or connections from old path |
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 uuid | |
import time | |
from selenium import webdriver | |
from selenium.webdriver.common.by import By | |
# Download cinesync v4 list by saving the html at https://www.cinesync.com/dashboard | |
# cat cineSync.html | grep c-callout__heading | grep -o -P '(?<=\>).*(?=\<)' | sort | uniq | grep '@' > useraccounts.txt | |
# Run this script once and sign in to set your cinesync login credentials | |
# send an email to the list to have them reset their password @ https://5.cinesync.com/auth/password_reset/ |
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 pprint | |
import inspect | |
import html | |
import copy | |
import pyblish.api | |
from Qt import QtWidgets, QtCore, QtGui | |
TAB = 4* " " |
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
name = "python" | |
version = "3.8.6" | |
authors = [ | |
"Guido van Rossum" | |
] | |
description = \ | |
""" |
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
"""These are utilities for connecting open-source pipeline Avalon with CG-Wire using Qtazu | |
See: | |
- https://github.com/getavalon/core | |
- https://github.com/Colorbleed/qtazu | |
References: | |
- https://github.com/getavalon/docker/blob/master/volume/sync.py#L227 | |
# How it works: |
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.api.OpenMaya as om | |
import maya.cmds as cmds | |
TRANSFORM_NODETYPES = ["transform", "joint"] | |
def has_non_default_locked_attributes(node): | |
locked_attributes = [] | |
for attribute in ["translate", "rotate", "scale", "jointOrient"]: | |
default_value = 1 if attribute == "scale" else 0 | |
for axis in "XYZ": |
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 subprocess | |
import sys | |
import os | |
import json | |
import shutil | |
import requests | |
import opentimelineio as otio | |
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
"""Implement scene modification awareness | |
By tracking Maya's undo queue, if there are any undo command that is not | |
a simple select after collecting completed, consider this scene has been | |
modified and require to reset Pyblish. | |
""" | |
import collections |
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
from maya import OpenMaya as om | |
import numpy as np | |
from ctypes import c_float, c_double, c_int, c_uint | |
_CONVERT_DICT = { | |
om.MPointArray: (float, 4, c_double, om.MScriptUtil.asDouble4Ptr), | |
om.MFloatPointArray: (float, 4, c_float , om.MScriptUtil.asFloat4Ptr), | |
om.MVectorArray: (float, 3, c_double, om.MScriptUtil.asDouble3Ptr), | |
om.MFloatVectorArray: (float, 3, c_float , om.MScriptUtil.asFloat3Ptr), | |
om.MDoubleArray: (float, 1, c_double, om.MScriptUtil.asDoublePtr), |
NewerOlder