Support SFMLab on Patreon

Met's Magic Rig


This rig script uses Regular Expressions and the actual skeleton hierarchy to find arm and leg bones to apply the IK constraints to.

  • This means that as long as your bone hierarchy is correct, and your bone names are in english and don't have typos in them, this rig should just work.

  • Doesn't matter how many spine bones there are, it finds them recursively.

  • From what I've heard over the past year, it does work on 99.9% of models, including cats and horses. Therefore this makes the rigs that come with all those models obsolete.

  • In addition, it has a fuckton other regular expression groups for various clothes, weapons, genitals, hair, face parts, wings, tails, and more, which it will try to organize, often in symmetrical groups. See image above.

  • This means it also makes custom DefaultAnimGroups.txt's obsolete. You can delete it and forget about it.

  • It also organizes shape keys, based on their name. Almost everything from the "Unknown" tab will be gone and moved into the organized groups.

  • Removing and re-applying the rig doesn't require you to rename the model.

  • Bake procedural bones will break everything. Bake them at the start, stop relying on SFM physics for your animations.

  • It force-enables rig_footroll, which is a cool slider control that lets you lift the ankle without moving the toes. The rig script will try to apply it to every model, and it will work correctly for some. Depends on the foot bone's roll angle.
  • If the script fails, look at the console. There should be an error message with the failed RegEx. If you know regular expression, you can edit the script to have it match your weird bone name.

That's about it. Use it, it's smart and it works. But if it doesn't work, please don't ask me to add support for a model, just fall back on the rig script provided with said model.



@dantehybrid 6 months late but for anyone else with similar problems: Delete your DefaultAnimGroups.txt, the rig makes it obsolete. Google if you don't know where it is.

Metssfm posted 2 years, 3 months ago


Any chance this would work with this? If not right away, know any tips/tricks to make it so :)

downjonsie posted 2 years ago


No, SFM doesn't have any kind of constraints for spline IK rigging, tentacles need to be animated the old way.

Metssfm posted 2 years ago

Should I edit this rig to get it to work with a model I want to use, or should I edit rig_biped_simple?

Sonario648 posted 1 year, 5 months ago


If you know Regular Expressions, I enocurage you to try and edit this script. If you don't know RegEx, then you can't anyways.

Metssfm posted 1 year, 4 months ago


Congratulations! You made managed to rig my skyrim models that had the weirdest named bones. I applaud you!

Rasputinwentmad posted 1 year, 4 months ago


why are joints showing up but no bones in sfm for your mercy model some odd reason only the joints are showing but i can't use the bones

nightwarriorwrath posted 11 months ago

Leave a reply

You need to be logged in to leave a comment.


Metssfm 🎩💰

Support SFMLab on Patreon