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 | |
#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 |
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 | |
#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") |
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 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 |