|
A quick and dirty script. Select your object and run ! It symmetrize the weight from x positive side. As this command normalize the weights it then re symmetrize from the x negative side. Tell me if it works for you.
var oPenguin = Selection.item(0); var osymTemplate = CreateSymmetryMappingTemplate(oPenguin, true, 0, true);
var oGeometry = oPenguin.activeprimitive.geometry;
var oPoints = oGeometry.Points;
var oHalfPointsPlus = new Array();
var oIncr = 0 oEnum = new Enumerator( oPoints ) ;
for (;!oEnum.atEnd();oEnum.moveNext() ) { var oPos = oEnum.item
().position; if(oPos.x >= 0) {
oHalfPointsPlus[oIncr] = oEnum.item().index; oIncr = oIncr+1;
} } SymEnvWeight(null, oPenguin+".pnt["+oHalfPointsPlus.toString()+"]", osymTemplate, 0);
var oHalfPointsMinus = new Array();
var oIncr = 0 oEnum = new Enumerator( oPoints ) ; for (;!oEnum.atEnd();oEnum.moveNext() )
{ var oPos = oEnum.item().position;
if(oPos.x <= 0) {
oHalfPointsMinus[oIncr] = oEnum.item().index; oIncr = oIncr+1;
} } SymEnvWeight(null, oPenguin+".pnt["+oHalfPointsMinus.toString()+"]", osymTemplate, 0);
Cheers -- Guillaume Laforge freelance TD | cg Artist my blog ! http://vol2blog.blogspot.com/
On 10/2/06,
Matt Lowery <matt(at)3dcharacter.co.za> wrote:
Hey
gang,
this is something
that has been bothering me for a while now, how can I fix points that don't have
a combined envelope weight of 100 %? I ran the script that Homam Bahnassi wrote
for checking weights (cool tool)... problem is that it ends up tagging almost
all the points on my charaters head. Now usually I would forge ahead and fix the
weighting by hand, but this must be a comon problem so I thought I'd ask if
anyone out there had a trick ( read script) up their sleeve for dealing with
this annoying problem?
m(at)
--
Internal Virus Database is out-of-date.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.6/453 - Release Date: 20/09/2006
|