Source Filmmaker

Source Filmmaker

477 ratings
Create IK Constraint script
2
7
2
   
Award
Favorite
Favorited
Unfavorite
Universe: Original IP
Script
Tags: SFM
File Size
Posted
Updated
35.429 KB
21 Dec, 2016 @ 9:45pm
23 Oct @ 3:27pm
8 Change Notes ( view )

Subscribe to download
Create IK Constraint script

Description
A very quick way to create ik for limbs. works similar to the ik in SFM 2.

How to use

  1. right click bone you want to target i.e hand/foot
  2. go to dag utilities menu
  3. click Create IK Constraint and thats it.

it will add the rig control for the target in the same group as the bone and move the Constraint bones to a hidden group

update ver 1.1
-added two new script files:
1) move_to_orginal group- after detaching a single IK rig, use this to send the dag back to the original group
2) save_ik_constraint_rig.py- saves all ik constraints made into a single rig script







special thanks to http://gtm.steamproxy.vip/id/Edtion who gave me the idea.

feel free to modify the script for your own use
if you find any bugs or have suggestions message me in the comments below.

Includes:
sfm\dag\exact\count1\create_ik_constraint.py
sfm\dag\exact\count1\create_ik_constraint _rigfingers.py
sfm\dag\exact\count1\create_ik_constraint_set_offset.py
sfm\dag\exact\count1\move_to_original group.py
sfm\dag\multi\move_to_original group.py
sfm\animset\save_ik_constraint_rig.py
142 Comments
ETheDestroyer 23 Oct @ 4:45pm 
yup all good thank you :steamthumbsup:
OMG Theres A Bear In My Oatmeal!  [author] 23 Oct @ 3:28pm 
ok i updated it check to see if its fixed.
ETheDestroyer 23 Oct @ 8:38am 
yes is says something aboud "TypeError: exceptions must be old-style classes or derived from BaseException, not str
Traceback (most recent call last):
File "<string>", line 136, in <module>
File "<string>", line 49, in BuildRig
File "e:\steamlibrary\steamapps\common\sourcefilmmaker\game\usermod\..\sdktools\python\global\lib\site-packages\sfm\sfmUtils.py", line 66, in FindFirstDag
raise errorString
TypeError: exceptions must be old-style classes or derived from BaseException, not str"
OMG Theres A Bear In My Oatmeal!  [author] 22 Oct @ 4:12pm 
does any error pop up in the console when you try to load the rig?
ETheDestroyer 22 Oct @ 4:58am 
hey amazing work but i have a slight issue where i already made a rig and edited bones and groups and everything made it real pretty and i clicked on the save ik rig but when i clicked the saved ik it doesnt work the ik rig doesnt load at all am i doing something wrong ?
Pyroman 9 Aug @ 5:55am 
@Slicky Rice move the model's knees forward each step then.
Slicky Rice 28 Jun @ 4:45pm 
Is there anyway to make legs less prone to looking like bird legs (backwards knees)? It's annoying to animate a walk cycle
InKnight "Venom" Inktoling 18 Jun @ 6:02pm 
If I don't want to use the ik on a specific bone, How can I remove it?
Rubus Cockburnianus 29 Dec, 2024 @ 2:49pm 
theres no "Create IK Constraint" in the menu, ive tried on multiple bones
Diego_Brando 6 Dec, 2024 @ 4:37pm 
DUDE YOU ARE A LIFE SAVER THANK YOU