Source Filmmaker

Source Filmmaker

477 个评价
Create IK Constraint script
2
7
2
   
奖励
收藏
已收藏
取消收藏
Universe: Original IP
Script
标签: SFM
文件大小
发表于
更新日期
35.429 KB
2016 年 12 月 21 日 下午 9:45
10 月 23 日 下午 3:27
8 项改动说明 ( 查看 )

订阅以下载
Create IK Constraint script

描述
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://psteamcommunity.yuanyoumao.com/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 条留言
ETheDestroyer 10 月 23 日 下午 4:45 
yup all good thank you :steamthumbsup:
OMG Theres A Bear In My Oatmeal!  [作者] 10 月 23 日 下午 3:28 
ok i updated it check to see if its fixed.
ETheDestroyer 10 月 23 日 上午 8:38 
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!  [作者] 10 月 22 日 下午 4:12 
does any error pop up in the console when you try to load the rig?
ETheDestroyer 10 月 22 日 上午 4:58 
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 8 月 9 日 上午 5:55 
@Slicky Rice move the model's knees forward each step then.
Slicky Rice 6 月 28 日 下午 4:45 
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 6 月 18 日 下午 6:02 
If I don't want to use the ik on a specific bone, How can I remove it?
Rubus Cockburnianus 2024 年 12 月 29 日 下午 2:49 
theres no "Create IK Constraint" in the menu, ive tried on multiple bones
Diego_Brando 2024 年 12 月 6 日 下午 4:37 
DUDE YOU ARE A LIFE SAVER THANK YOU