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
| int $whataxis = `manipMoveContext -q -mode Move`; | |
| if ($whataxis == 6){ | |
| float $aaoa[] = `manipMoveContext -q -oa $wtf`; | |
| string $xzoa = "" + $aaoa[0] + "rad"; | |
| string $yzoa = "" + $aaoa[1] + "rad"; | |
| string $zzoa = "" + $aaoa[2] + "rad"; | |
| scale -oa $xzoa $yzoa $zzoa -r -1 1 1; | |
| } | |
| if ($whataxis == 2){ | |
| scale -r -ws -1 1 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
| //Cobbled together from: | |
| //http://feedback.photoshop.com/photoshop_family/topics/quick_save_as | |
| //http://www.polycount.com/forum/showthread.php?t=85425 | |
| #target photoshop; | |
| if (app.documents.length > 0) { | |
| var thedoc = app.activeDocument; | |
| var docName = thedoc.name; |
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
| ''' | |
| timeDragger 1.0 | |
| 29/03/2015 | |
| Tom Bailey | |
| ''' | |
| import maya.cmds as cmds | |
| import maya.mel as mel | |
| ''' |
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
| script:var v = moi.ui.getActiveViewport(); if ( v != null ) { moi.view.lineWidth = 4; v.renderToClipboard( 4096, 4096 ); moi.view.lineWidth = 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
| string $parent[] = `listRelatives -p`; | |
| $parent = `listRelatives -p $parent[0]`; | |
| string $obj = $parent[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
| //Cobbled together from: | |
| //http://feedback.photoshop.com/photoshop_family/topics/quick_save_as | |
| //http://www.polycount.com/forum/showthread.php?t=85425 | |
| #target photoshop; | |
| if (app.documents.length > 0) { | |
| var thedoc = app.activeDocument; | |
| var docName = thedoc.name; |
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 import maya.OpenMaya as om import os #Changes the name of file nodes to their Image Name fileNodes = cmds.ls(textures=True) for f in fileNodes: cmds.select(f, replace=True) imageNameFull = cmds.getAttr(".fileTextureName") imageNameBase = os.path.basename(imageNameFull) imageName, imageExt = os.path.splitext(imageNameBase) cmds.rename(f, imageName) om.MGlobal.displayInfo("Changed name on all file Nodes") |
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 objFix() | |
| { | |
| string $mySelection[] = `ls -sl`; | |
| for($each in $mySelection) | |
| { | |
| string $mySelectionShapes[] = `listRelatives -s $each`; | |
| if( !(nodeType($each) == "mesh") ) | |
| { | |
| select -cl; |
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 clsit(inputer): | |
| cvc = cmds.getAttr(inputer+'.spans') + cmds.getAttr(inputer+'.degree') | |
| for z in range(0, cvc): | |
| z = str(z) | |
| cmds.select(inputer + '.cv[' + z + ']') | |
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 toggleCurveser(){ | |
| for ($x in `getPanel -type modelPanel`){ | |
| int $curvesval = !`modelEditor -q -nurbsCurves modelPanel4`; | |
| modelEditor -e -nurbsCurves $curvesval $x; | |
| } | |
| } |