DigitalEro Offline

[SFM] Locking joints/body parts?

Wed, 30 Oct 2013 15:54:19

Bilge Rat 16

Simply use an IK rig for that. 90% of the models here have one somewhere in the release thread.
Wed, 30 Oct 2013 10:46:19

NathanGidget

Hi. I'm new to SFM. I've gotten the basics down and practiced a bit on some SFW stuff and I figured I'd try something dirty. I have two characters posed and I'm about to start animating. Is there any way to lock a joint or body part in place? To be more specific I have the hand/lower arm where they need to be the entire animation, but moving its parent parts (upper arm, torso, shoulder etc) moves the hand with it to keep the arms pose. I'd like to lock the hand where it is. Or would I just have to re-adjust the hand every time I make a new pose? Thanks in advance for any response, and nice forum. :mrgreen:
Wed, 30 Oct 2013 23:47:27

NathanGidget

"Bilge Rat 16" said ...
Simply use an IK rig for that. 90% of the models here have one somewhere in the release thread.
The model I'm working with is Soria... your post lead me in the right direction. What I did was right click her model->rig->rig_biped_simple. Then I loaded the .py file script. I can lock joints in place according to the world, but when I move a parent part the joint will just stretch in a sort of demonic way. Pic: before and after rotating her back while her hand+fingers are locked in place[spoiler:9ruqpyl1][/spoiler:9ruqpyl1] Am I doing it wrong? Sorry if I'm going full retard, I followed https://developer.valvesoftware.com/wik ... IK_rigging
Thu, 31 Oct 2013 02:02:14

vaako

Not sure which version of the model you're using from the picture, but if you're using my old Gmod version, definetly grab the SFM version. That one comes with it's own rig script.
Thu, 31 Oct 2013 02:27:48

NathanGidget

"vaako" said ...
Not sure which version of the model you're using from the picture, but if you're using my old Gmod version, definetly grab the SFM version. That one comes with it's own rig script.
It's the SFM version. Amazing model, btw. I can see there's extreme potential for detailed work using it.
Thu, 31 Oct 2013 14:48:37

Bilge Rat 16

"NathanGidget" said ...
The model I'm working with is Soria... your post lead me in the right direction. What I did was right click her model->rig->rig_biped_simple. Then I loaded the .py file script. I can lock joints in place according to the world, but when I move a parent part the joint will just stretch in a sort of demonic way.
Locking bones in place is a whole another thing and it can be done with or without IK rigs. But that's not what you need in this case. Biped_simple doesn't work with Soria. Every model whose bone structure is named differently from Valve's standard need a custom script. If you have extracted the content of the zip correctly, Soria's rig should be found under usermod\scripts\sfm\animset. Now, since you've already tried to load the wrong rig, that might be a problem. Chances are SFM won't let you load another rig even if the model is still shown unrigged. You'll need to UNDO that action. If you can't, for whatever reason, then you'll have to rename the animset to something else. Now you can use the correct rig. Note that by default SFM tends to hide a few bones (most notably jigglebones and face controls) when the IK is loaded. To see them again right click on a black spot of the animation set editor and choose "show hidden controls".