Skip to content

Instantly share code, notes, and snippets.

View ryanmillerca's full-sized avatar

Ryan Miller ryanmillerca

View GitHub Profile
@mstevenson
mstevenson / SepScript.mel
Created November 25, 2012 22:40
Maya MEL script that breaks up a mesh based on materials. Created by Andrew Coggeshall at Basenji Games.
// Poly Separate
// Copyright (C) 2012 Basenji Games
// Licensed under the MIT license
string $selection[] = `ls -sl`;
sepMat($selection[0]);
global proc sepMat(string $object){
string $shadingGroups[] = getSGsFromShape($object);
string $ParentName = ($object + "_lightMap_Group");