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 | |
| def snap_ctls_to_joints(ctl_joint_map): | |
| for ctl_name, joint_name in CONTROL_JOINT_MAP.items(): | |
| ctl = pm.PyNode(ctl_name) | |
| joint = pm.PyNode(joint_name) | |
| ctl.setMatrix(joint.wm.get(), worldSpace=True) | |
| CONTROL_JOINT_MAP = { |
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
| #! python | |
| """ | |
| Util for verifying that the case of local files and folders | |
| matches the case of files synced from perforce. | |
| """ | |
| import click | |
| import yaml | |
| import os |
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
| #! python | |
| import os | |
| import click | |
| import P4 | |
| from pathlib import Path | |
| from typing import Set | |
| @click.command() |
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
| """ | |
| Usage: | |
| $ python arnoldstatmem.py arnold_stats.1.json | |
| """ | |
| import os | |
| import json | |
| import fnmatch | |
| import sys |
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
| #!/bin/bash | |
| p4 have $1 | grep -Eo '//.*#[[:digit:]]+' |
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
| #!/bin/bash | |
| # add -n after flush to dryrun | |
| p4 have $1 | grep -Eo '//.*#[[:digit:]]+' | p4 -x - flush |
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
| /// <summary> | |
| /// Get a value from a config file for the project of the current target | |
| /// </summary> | |
| /// <returns>true if a value was found for the given section and key</returns> | |
| bool TryGetConfigValue(ConfigHierarchyType ConfigType, string SectionName, string KeyName, out string Value) | |
| { | |
| ConfigHierarchy Config = ConfigCache.ReadHierarchy(ConfigType, DirectoryReference.FromFile(Target.ProjectFile), Target.Platform); | |
| if (Config != null) | |
| { | |
| ConfigHierarchySection Section = Config.FindSection(SectionName); |
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 pulse | |
| def copyShape(src, dst): | |
| shapes = src.getShapes() | |
| for shape in shapes: | |
| dupe = pm.duplicate(shape, addShape=True) | |
| print(dupe) | |
| pm.parent(dupe, dst, shape=True, relative=True) | |
| pulse.sym.MirrorCurveShapes.flipAllCurveShapes(dst) | |
| mappearance = pulse.sym.MirrorColors() |
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 | |
| import pymel.core as pm | |
| import pulse | |
| def exportSKSets(sourceScenePath, destDir): | |
| """ | |
| Export all SK_* sets from the given scene, unparenting all members |
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 | |
| rotateAxes = [s.rotateAxis for s in pm.selected()] | |
| pm.select(rotateAxes) |