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
w = QtGui.QDialog() | |
l = QtGui.QGridLayout(w) | |
row = 0 | |
column = 0 | |
for i in [ | |
"closed", "end", "more", "open", "root-closed", "root-open", "single", "vline", | |
]: | |
p = QtGui.QPushButton(i) | |
s = p.style() | |
p.setIcon(QtGui.QIcon(":/branch-{}.svg".format(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
import maya.cmds as mc | |
print '\n'*8 | |
print '-'*80 | |
print "Deleting un-used anim curve nodes (they don't output to anything)" | |
print '-'*80 | |
for curveType in ["animCurveTL", "animCurveTA", "animCurveTU", "animCurveTT" ]: | |
for curveNode in mc.ls(type=curveType): | |
if mc.listConnections(curveNode+'.output') is None: |
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
class sweet: | |
sweetness=0 | |
def __init__(self, inputSweetness): | |
print "I'm aliveeee" | |
self.sweetness = inputSweetness | |
def addSweetness(self, inputSweetness): | |
self.sweetness = self.sweetness + inputSweetness |
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
Q() { | |
###################################################################################### | |
## To use after "install", literally type in Q in terminal and press enter ## | |
## IF ERROR (Normally first install): Open a new Terminal window THEN type Q ## | |
###################################################################################### | |
clear | |
TOTAL=$(quota -s | tail -1 | cut -d " " -f 20 | grep -o "[0-9]*") | |
USED=$(quota -s | tail -1 | cut -d " " -f 18 | grep -o "[0-9]*") | |
PERCENT=$(bc <<< "scale=2; $USED*100/$TOTAL" ) | |
TOTAL=$(bc <<< "scale=3; $TOTAL / 1024") |
NewerOlder