Skip to content

Instantly share code, notes, and snippets.

View viliusddd's full-sized avatar

Vilius Juodžiukynas viliusddd

  • Vilnius, Lithuania
  • 20:43 (UTC +02:00)
  • LinkedIn in/vilius1
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");
@SEVEZ
SEVEZ / check_uv_flips_overlaps.py
Created August 29, 2015 11:18
Maya Python script for selecting overlapped and flipped uv polygons
import math
import maya.api.OpenMaya as om
from pymel.core import *
from pymel.core.datatypes import *
def createBoundingCircle(meshfn):
"""Parameter: meshfn - MFnMesh
Represent a face by a center and radius, i.e.
center = [center1u, center1v, center2u, center2v, ... ]
radius = [radius1, radius2, ... ]