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 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) |
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
| cmds.deleteUI('dockName', layout=True) |
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
| 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 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
| global proc TSM2_FKIKSwitch() | |
| { | |
| int $cycleCheckState; | |
| $cycleCheckState = `cycleCheck -q -e`; | |
| if ($cycleCheckState == 1) | |
| cycleCheck -e off; | |
| int $i; |
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
| global proc TSM2_FKIKSwitchNoKeyframe() | |
| { | |
| int $cycleCheckState; | |
| $cycleCheckState = `cycleCheck -q -e`; | |
| if ($cycleCheckState == 1) | |
| cycleCheck -e off; | |
| int $i; |
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
| 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 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 | |
| cmds.select(all=1,hi=1) | |
| cmds.lockNode(lock=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
| cmds.rename('LidDnLFSpline1','jntLidDnLFSpline1') | |
| cmds.rename('LidDnLFSpline2','jntLidDnLFSpline2') | |
| cmds.rename('LidDnLFSpline3','jntLidDnLFSpline3') | |
| cmds.rename('LidDnLFSpline4','jntLidDnLFSpline4') | |
| cmds.rename('LidDnLFSpline5','jntLidDnLFSpline5') |
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
| 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 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
| def selectBind(): | |
| pfx ='jnt' | |
| newListIK = [] | |
| fullList = cmds.ls(type='joint') | |
| for item in fullList: | |
| if item.startswith(pfx ): | |
| newListIK.append(item) | |
| cmds.select(newListIK) |
OlderNewer