JasonOsipa
12-18-2003, 01:33 PM
I've got the need to after-the-fact insert some joints into a model I'm building. Now, I know, for 100% sure exactly what needs to be done witht he weighting once those are in, but I am a lazy, lazy bastard (ok, not that lazy, but I really need to spend my time on other things -deadline!)
So what I need is this, and my knowledge of component-level mel does not exist:
If a vert has:
0.2 to jnt1
0.4 to jnt2
0.4 to jnt3
I want to simply tell it "Take anything assigned to jnt1 and drop it onto jnt4 instead", making it:
0.2 to jnt4
0.4 to jnt2
0.4 to jnt3
This makes everything I have to modify ONE button instead of a few hours of work, as this "transfer" of weights is all I'll need to do. -One better, I'd prefer to only have it happen on selected verts, but I'll take what I can get!
I'm assuming that breaks down to some sort of simple if/then/else thing inside a for-loop or two with a vert/joint list, but I just have no idea how to do mel on the vert level.
Please Obi-Wan, you're my only hope. -J.
So what I need is this, and my knowledge of component-level mel does not exist:
If a vert has:
0.2 to jnt1
0.4 to jnt2
0.4 to jnt3
I want to simply tell it "Take anything assigned to jnt1 and drop it onto jnt4 instead", making it:
0.2 to jnt4
0.4 to jnt2
0.4 to jnt3
This makes everything I have to modify ONE button instead of a few hours of work, as this "transfer" of weights is all I'll need to do. -One better, I'd prefer to only have it happen on selected verts, but I'll take what I can get!
I'm assuming that breaks down to some sort of simple if/then/else thing inside a for-loop or two with a vert/joint list, but I just have no idea how to do mel on the vert level.
Please Obi-Wan, you're my only hope. -J.
