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_FKIKSwitch() | |
{ | |
int $cycleCheckState; | |
$cycleCheckState = `cycleCheck -q -e`; | |
if ($cycleCheckState == 1) | |
cycleCheck -e off; | |
int $i; |
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 jointLock(): | |
allJoints = cmds.ls(type='joint') | |
for joint in allJoints: | |
cmds.setAttr(joint+'.radius',.01) | |
cmds.setAttr(joint+'.radius',lock=1,keyable=1,channelBox=0) | |
def jointUnlock(): | |
allJoints = cmds.ls(type='joint') | |
for joint in allJoints: | |
cmds.setAttr(joint+'.radius',lock=0,keyable=1,channelBox=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
cmds.deleteUI('dockName', layout=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
import os | |
import urllib | |
url = raw_input('Enter url to retrieve: ') | |
path = raw_input('Enter path to save: ') | |
if os.path.exists(path): | |
filename = os.path.split(url)[1] | |
file = os.path.join(path,filename) | |
urllib.urlretrieve(url, file) |
NewerOlder