Skip to content

Instantly share code, notes, and snippets.

Avatar

Neal Burger borgfriend

View GitHub Profile
@borgfriend
borgfriend / maya2017install.sh
Last active Jun 23, 2020
Maya 2017 Installation on Ubuntu 16.04
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
@borgfriend
borgfriend / maya_windows_multifile_render.py
Created Dec 29, 2015
Create a Bat-File to Batch Render Maya Files
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")
@borgfriend
borgfriend / maya_poly_bevel_hard_edges.py
Created Dec 28, 2015
Maya Polygon Bevel Hard Edges
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
You can’t perform that action at this time.