Home Technical Talk

Swap bone tool

polycounter lvl 10
Offline / Send Message
trebor777 polycounter lvl 10
I looked for a while for this, but couldn't find really anything doing it... so
I made it.
It's my 1st script for max :p and it may not be that usefull but I wanted to share it still.

It simply replace the selected bone to another one while keeping the same weight :)
Mainly useful when your mirror paste doesn't work properly.
But it can replace any bones :) So have fun with it. Like, you have skinned something on a bone, then added a new bone, and want to transfer that skinning without redoing everything.

Feel free to make comments about things I could improve with this :)


HOW TO:
- in the skin modifier, select the verts you want to swap bones.
- start the tool
- select the 1st bone that will be swapped
- select the 2nd one
- Click the button you need! and wait for the "Done!" Message box

It'll close/reopen your weight Tool window, in order to refresh the data being displayed (noticed the new bone would appear, but not with the proper weight)


Here's the link: (made under max2011, not tested on other versions)
https://dl.dropbox.com/u/167380/Script/SwapBoneTool.mcr

UI:
sbt.png

Enjoy!

EDIT: version 1.5
sbt2.png
-> Renamed to Replace rather than swap, as it replaces the bone, but does not swap the weights.
-> Improved UI
-> Cleaner better Code
-> Can go both ways, Bone1 -> Bone2 or Bone2 -> Bone1

Replies

Sign In or Register to comment.