This file contains 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 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, ... ] |
This file contains 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
// 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"); |