Skip to content

Instantly share code, notes, and snippets.

View AndrewtConroy's full-sized avatar

Andrew AndrewtConroy

View GitHub Profile
global proc TSM2_FKIKSwitch()
{
int $cycleCheckState;
$cycleCheckState = `cycleCheck -q -e`;
if ($cycleCheckState == 1)
cycleCheck -e off;
int $i;
@AndrewtConroy
AndrewtConroy / gist:60d7327d945e65cc624d
Created October 29, 2014 20:49
simple joint utilities
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)
cmds.deleteUI('dockName', layout=True)
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)