View maya2017install.sh
#!/bin/bash | |
#Make sure we’re running with root permissions. | |
if [ `whoami` != root ]; then | |
echo Please run this script using sudo | |
echo Just type “sudo !!” | |
exit | |
fi | |
#Check for 64-bit arch | |
if [uname -m != x86_64]; then |
View maya_windows_multifile_render.py
import os | |
#Variables must be configured to the proper Path | |
projectName = "default" | |
path = os.environ['USERPROFILE'] + "\Documents\maya\projects" + "\\" + projectName + "\\" + "autosave" | |
#Camera selected | |
camera = "persp" | |
filename = "batchRender.bat" | |
fileoutput = path + "\\" + filename | |
file = open(fileoutput, "w") |
View maya_poly_bevel_hard_edges.py
import pymel.core as pm | |
def obj_is_poly(obj): | |
#Evaluates if Object is Polygon | |
return pm.nodeType(obj) == "mesh" | |
def bevelHardEdges(obj, offset = 0.5, segments = 1): | |
if obj_is_poly(obj): | |
pm.select(obj) | |
pm.polySelectConstraint( m=3, t=0x8000, sm=1 ) # to get hard edges |