PDA

View Full Version : mirror cluster weights


rusted_nut
08-30-2003, 08:04 PM
I'm trying to write a MEL script that will:
- mirror a cluster and it's cv member set from one poly object to another poly object (which would be the same object mirrored on the opposite axis)

- I then want the script to transfer the cluster weights from the first cluster to the new mirrored cluster

I haven't done any scripting like this before and am not sure how to go about it. Any help would be greatly appreciated.

jdj
09-05-2003, 11:27 AM
Hello rusted_nut

*hazy memory*

Isn't there a command in smooth skinning which copies weights from one object to another?

Just a vague recollection...
/ Daniel

rusted_nut
09-08-2003, 04:20 AM
Hi Daniel,
I think you are thinking of the edit Smooth Skin > mirror weight command, which mirrors skinCluster weights, but not clusters

jdj
09-08-2003, 08:01 AM
Ah - that's right.

Unfortunately I have not played around with clusters in MEL before. You should be able to do something with the commands percent and cluster. percent -q -v thecluster should give you a weight array which you later on ought to be able to apply to a new cluster. But as I said - I have never played around with this aspect i MEL.

Good luck
/ Daniel

CGTalk Moderation
01-16-2006, 12:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.