Hey guys,
Anyone know any scripts for scaling a model with a skin modifier already on it. The models often used bones and sometimes a mix of bones/character studio.
I've seen various workarounds online, but none of them provide solid results. I don't want to reskin every one of these models.
Any script or workflow that is reasonable for this task?
Replies
I personally export weights and reimport them, but I use proprietary project scripts I wrote, and cannot release them.
Surely there are numerous export/import skin weight scripts ? (because scaling doesn't disrupt vertex order, so that would be a good bet)
but as Chai told, you should be able to export your rig, envelopes, or weights then delete skin modifier, scale bones and model and load information on a new skin modifier. I didn't test this myself, but you simply can check it.
Make a box, attach your model and skeleton rig to it as children, scale the box the amount you want to scale your models, reset Xform on the box.
Have fun!
Also, google for pen tools (paul neale), there is a reset xform which you can use on bones without resetting their orientation, it just resets the scale to 1. It sometimes has a miniscule error margin, like instead of 1 it will be 0.999999 but it works fine for me when I need to scale a skeleton.
Bake and save out the skin weights.
Remove skin
Scale the skeleton, if its a custom bone rig then don't scale but use Animation > Bone Tools to reposition the joints. If its biped, enter figure mode and adjust the height.
Scale the mesh to match the new skeleton
Reset scale transform (hierarchy tab, no need to reset xform and screw everything up)
Apply skin and load in the weights.
Tips:
Place the working pivot at the lowest center point of the skeleton. If you're using biped its at the frozen footstep node. Then use the working pivot to scale up all of the mesh pieces at the same time.
I've done this quite a bit with biped and never had a problem even with fully animated characters it works really well. With custom rigs... well it all depends on what you have going on.
Since I'm exporting to .x, it seems like I need to create a new biped and then apply the skin weights that way. It's alright though, since I just exported a .fig for the layout.
for my bones rigs though, I think I'll have to redo those, they're not playing nice with scaling at all.