Rigid binding - any way to export my set membership?

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  06 June 2003
Rigid binding - any way to export my set membership?

I have a character I've built and rigid skinned him up. However I have a little problem - I'm really quite happy with the rigid binding set membership but somewhere along the line - I detached the rigid binding with bake history on - the character has now moved a spot from its originally modelled position and I've since rebinded the skeleton to this new slightly amended position - arse-hashbrowns

My solution is re-import the skeleton setup, import the original model and re-bind this model to the skeleton again but it means I'd have to redo all the set membership again - scruttocks!

What I wanna know is if there is some clever way of taking the set membership off the character I have at this minute (the one in the 1st paragraph), save off the set membership and apply it to the character setup on the 2nd paragraph.
None of the node names have changed between the two scenes so I would be grateful of anyone who could solve this problem.

If it were smooth skinning I'd just to the export skin map trickery but unfortunately I have to use rigid binding - so get in there!!!

first reply wins a nurbs sphere

  06 June 2003
Hey Anthony

The only way I can think of is via MEL.

I was messing around brielfy and the solution I came up with basically requires you to get each vertices weight, export it to a file and then reapply it using the information saved to a file.

I havnt actually done it, but you'd probably make use of this command:

percent -q -v joint1Cluster1 nurbsCylinder1.cv[5][0];

//(Replacing joint1Cluster1 with your joint name and nurbsCylinder1 with your geometry)

This command would basically query the value of the CV on that jointCluster. You would have to obviously write it, so that you can select all the CV's, then get that info for each CV and then output it to a file. You'll then need to script a way to reapply all the saved weights back to your mesh.

This is the only way I can think of, so please correct me if there is an easier way

  06 June 2003
cheers sir - I would try that if I had the time to write the Mel script which I really haven't done enough of unfortunately.

It looks like I'll just be re-rigging the character as it only took me about 2hours to do and It was my first rigid bound character anyway so I weren't that clued up on the tools hehehe!
in the time it would take me to write that script, I could actually have it done so I may as well saddle up and go fer it!

cheers - you win the nurbsphere!
  06 June 2003
There might be someone on CGTalk who is a little more experienced at scripting that might do it for you. (I would like to, but I just got so much work )

You know my email address, so you better be emailing me my nurbsSphere!!!

  01 January 2006
Thread automatically closed

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.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 02:12 PM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.