copy envelope weights partially

79 views
Skip to first unread message

Frank Lenhard

unread,
Oct 12, 2009, 2:55:57 PM10/12/09
to soft...@listproc.autodesk.com
hello,

i have to admit i just had a idea and i tried briefly to solve it with
ICE, but i just don't have enough knowledge yet, and neither much
time.
so i solved the problem with brute force handwork anyway but in
general i think a little tool, programmed in ICE, would be quite
helpful.

what i want to create is a little tool, that can take a selection of
points from 2 meshes, and then copies over the envelope weights from
one mesh to the other, with looking for the closest point in the
source mesh. taking its envelope weight and puts it in the destination
mesh.
both meshes have the same deformers in it.

this would come in handy in cases where you have to make sure the
envelope of, lets say a belt, is the same as the shirt underneath, or
parts of the skirt go along with the leg etc. so they never penetrate.
i know there is a copy weights tool in the legacy netview, buts its
cumbersome doing them one by one.

in my humble starting tries i was able to read the weights from one
mesh and write it onto another mesh. but thats about it.
if somebody could give me some hints in how to handle a conversion of
a closest location and the resulting point position, getting this
weight and write it on to the destination, i would be really happy.


ciao
franky

Matt Lind

unread,
Oct 12, 2009, 4:39:37 PM10/12/09
to soft...@listproc.autodesk.com
You may be able to do this in ICE, but in all honesty a script is
probably the better way to go in this case.

I tried making one out of ICE, but had problems coming up with an
elegant way to sort out the mappings between deformer and vertex for
weighting. Plus for a tool like this you want to only assign deformers
to the mesh that actually contribute to weighting, not all the deformers
availabe in the mesh you're pulling the weight info from. Example: If
you're trying to copy weights from a shirt to the belt, you don't want
the shirt's deformers from the shoulders and chest area added to the
belt's deformer list. You only want the deformers from the belt area
that actually drive the belt.

ICE is good for situations where you need persistent evaluation (eg:
operators), but for single copy/paste operation like this a command is
better suited to the task.

Matt

Steven Caron

unread,
Oct 12, 2009, 5:48:36 PM10/12/09
to soft...@listproc.autodesk.com
The blur beta tools has a tool called 'skinpanel'. It has a copy
button that takes obj and/or subcomponent selection, also a paste
button that uses either object or subcomponent selection. I believe it
does what you are describing, it really is the life saving tool for
our rigging deptartment.

Steven

On Oct 12, 2009, at 11:55 AM, Frank Lenhard <frank....@gmail.com>
wrote:

Frank Lenhard

unread,
Oct 13, 2009, 3:46:22 AM10/13/09
to Steven Caron
thanks to both of you. steven, i am going to check it out. sounds like
what i am after :)
after sending i got the ice tree working somehow, but got stuck with
the operator behaviour, like matt mentioned. as long as the ice tree
was connected it worked. when i disconnected it the previous weighting
was restored ha.
thanks guys!

ciao
franky

Adam Sale

unread,
Oct 13, 2009, 1:25:03 PM10/13/09
to Frank Lenhard, soft...@listproc.autodesk.com
to add re: ICE... freezing the ICE op instead of deleting it doesn't bake the weights in?

On Tue, Oct 13, 2009 at 10:24 AM, Adam Sale <adam...@gmail.com> wrote:
stating the obvious, but what about GATOR? I gather you are only interested in copying SOME point weights on a target instead of all of the weights...
 
Adam

Adam Sale

unread,
Oct 13, 2009, 1:24:11 PM10/13/09
to Frank Lenhard, soft...@listproc.autodesk.com
stating the obvious, but what about GATOR? I gather you are only interested in copying SOME point weights on a target instead of all of the weights...
 
Adam

On Tue, Oct 13, 2009 at 12:46 AM, Frank Lenhard <fra...@ixdream.com> wrote:

Steven Caron

unread,
Oct 13, 2009, 2:28:12 PM10/13/09
to soft...@listproc.autodesk.com
the tools i mentioned use gator and intermediate mesh objects to do the transfer. Gator saves my butt daily :)


Reply all
Reply to author
Forward
0 new messages