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
def buildIK() : | |
obj = 'Leg' | |
side = 'LF' | |
list = ['jntLeg01LF','jntLeg02LF','jntLeg03LF'] | |
srtJoint = list[0] | |
midJoint = list[1] | |
endJoint = list[2] | |
parent = '' |
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.cmds as cmds | |
import maya.mel as mel | |
''' | |
list = ['Leg_MoveLF','KneeJposLF','AnkleJposLF'] | |
nameSpace = '' | |
# 'jntLeg01LF' | |
obj = 'jntLeg' | |
side = 'LF' | |
chain = True |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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.cmds as cmds | |
import maya.mel as mel | |
''' | |
What is this: | |
This is a simple script that will copy UV's from one mech to another. The meshes should be simular for best results. | |
It will copy the UV's to a rigged mesh or a non rigged mesh. | |
Instructions: | |
In order to run this script correctly, just select the mesh with the good UV's, then select the mesh with bad UV's. |
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
def selectBind(): | |
pfx ='jnt' | |
newListIK = [] | |
fullList = cmds.ls(type='joint') | |
for item in fullList: | |
if item.startswith(pfx ): | |
newListIK.append(item) | |
cmds.select(newListIK) |
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
def selectBind(self): | |
pfx ='jnt' | |
newListIK = [] | |
fullList = cmds.ls(type='joint') | |
for item in fullList: | |
if item.startswith(pfx ): | |
newListIK.append(item) | |
cmds.select(newListIK) |
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
cmds.rename('LidDnLFSpline1','jntLidDnLFSpline1') | |
cmds.rename('LidDnLFSpline2','jntLidDnLFSpline2') | |
cmds.rename('LidDnLFSpline3','jntLidDnLFSpline3') | |
cmds.rename('LidDnLFSpline4','jntLidDnLFSpline4') | |
cmds.rename('LidDnLFSpline5','jntLidDnLFSpline5') |
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.cmds as cmds | |
cmds.select(all=1,hi=1) | |
cmds.lockNode(lock=0) |
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
allJoints = maya.cmds.ls(type='joint') | |
for joint in allJoints: | |
maya.cmds.setAttr(joint+'.radius',lock=0,keyable=1,channelBox=1) | |
maya.cmds.setAttr(joint+'.radius',1) |
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
global proc TSM2_FKIKSwitchNoKeyframe() | |
{ | |
int $cycleCheckState; | |
$cycleCheckState = `cycleCheck -q -e`; | |
if ($cycleCheckState == 1) | |
cycleCheck -e off; | |
int $i; |