Form and Space

creating CG 3D since 2001

  • Connect @
  • Linked in
  • Vimeo
  • Twitter

Modeling Script

Matthew | August 18, 2014

No Comments

This script combines objects into one mesh, merges all vertices within 0.001 tolerance, and softens the vertex normals. It’s useful when cutting apart objects often, like when symmetry modeling.

/**********************
Symmetrize Mesh
Version .01
Author: Matthew L. Stoehr
mattstoehr@gmail.com

Symmetrizes a mesh that has already
been cut in half on the X axis.

Designed with character modeling
as the target use.
***********************/

global proc mls_symmetrizeMesh()
{
    
    string $object[] = `ls -sl`;
    int $cnt = size($object);
    
    if($cnt > 1)
    {
        error "Select only one polymesh objects.";   
    }
    
    string $inst[] = `instance -n $object`;
        
    xform -ws -scale -1 1 1 $inst[0];        
        
    
    
    polyUnite -ch 1 $object $inst;
    
    $object = `ls -sl`;
    
    polyMergeVertex  -d 0.001 -am 1 -ch 1;
    
    polySoftEdge -a 180 -ch 1 $object;
    
    delete -ch $object;
}






Leave a Reply

Twitter

Subscribers

    396