Skip to content

Instantly share code, notes, and snippets.

View Dariusz1989's full-sized avatar
🎯
Focusing

Dariusz Makowski Dariusz1989

🎯
Focusing
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");