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
#!/bin/bash | |
#Heith Seewald 2012 | |
#Feel free to extend/modify to meet your needs. | |
#Maya on Ubuntu v.1 | |
#This is the base installer... I’ll add more features in later versions. | |
#if you have any issues, feel free email me at [email protected] | |
#### Lets run a few checks to make sure things work as expected. | |
#Make sure we’re running with root permissions. | |
if [ `whoami` != root ]; then |
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
from pymel.core import * | |
cams = ls( type='camera') | |
defaultCams = ["frontShape","perspShape", "sideShape","topShape"] | |
for i in defaultCams: | |
cams.remove(i) | |
def hsRender(name): | |
start = int(startFrame.getText()) | |
end = int(endFrame.getText()) |
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
'Be sure that maya's bin folder is located in your system's path. | |
Dim AllProcess, Process, strFoundProcess | |
Dim objShell : Set objShell = CreateObject("Wscript.Shell") | |
strFoundProcess = False | |
Set AllProcess = getobject("winmgmts:") 'create object | |
objShell.Run "maya.exe" | |
WScript.Sleep 4000 | |
Do | |
For Each Process In AllProcess.InstancesOf("Win32_process") 'Get all the processes running in your PC |
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
for i in `ls *.pyc`; do echo $i | awk '{print("uncompyler.py "$1" > "$1)}' | sed 's/pyc/py/2' | /bin/sh; done |
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
from pymel.core import * | |
def cubeCube(): | |
rows = int(raw_input("rows")) | |
columns = int(raw_input("columns")) |
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
from pymel.core import * | |
rows = 10 | |
columns = 10 | |
hight = 10 | |
r = 0 | |
c = 0 | |
h = 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
from pymel.core import * | |
row = 10 | |
column = 10 | |
height = 10 | |
x,y,z = 0, 0, 0 | |
for i in range(0, row * column * height): |
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
from pymel.core import * | |
cvCount = 1000 | |
cvPoints = [] | |
for i in range(cvCount): | |
x = dt.sin(i) * i | |
y = dt.cos(i) * i | |
z = 0 | |
cvPoints.append([x, y, 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
from pymel.core import * | |
ball = polySphere()[0] | |
bs = ball.getShape() | |
#Basic selection | |
select([i for i in bs.vtx if i.getPosition().y >= 0]) | |
#more interesting things: |
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
from bs4 import BeautifulSoup | |
import requests | |
r = requests.get('http://en.wikipedia.org/wiki/List_of_cities_in_Texas') | |
soup = BeautifulSoup(r.text) | |
links = soup.find_all('li') | |
cities = [] | |
for i in links: | |
try: |
OlderNewer