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 maya.cmds as cmds | |
# bm_axisDisplay | |
# Forces the Local Rotation Axis display on or off for all joints or for the selected joints or transforms | |
def setAxisDisplay(display=False, allObj=False): | |
# if no joints are selected, do it for all the joints in the scene | |
# if allObj flag is True then this will toggle the axis display for all objects in the scene, not just joints. | |
if not allObj: | |
if len(cmds.ls(sl=1, type="joint")) == 0: |
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 re | |
import itertools | |
from maya import cmds | |
from maya.app.renderSetup.model import selector as rs_selector | |
from maya.app.renderSetup.model import renderSettings as rs_render_settings | |
if float(cmds.about(version=True)) >= 2020.0: | |
_attr_highest_col = "containerHighest" |
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
""" | |
A simple utility module for moving skinned joints. | |
""" | |
import math | |
import pymel.core as pmc | |
def reset_bind_matrix(joint): | |
""" |
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
set cut_paste_input [stack 0] | |
push $cut_paste_input | |
Group { | |
name BalanceGrade | |
tile_color 0x6c9de1ff | |
addUserKnob {20 BalanceGrade} | |
addUserKnob {26 ColorMatrix_label l "@b;ColorMatrix" T " "} | |
addUserKnob {41 matrix T ColorMatrix.matrix} | |
addUserKnob {22 reset_mtx l Reset T "nuke.thisNode()\['matrix'].setValue(\[1,0,0,0,1,0,0,0,1])" +STARTLINE} | |
addUserKnob {26 ""} |
OlderNewer