what does "default strategy" mean in rig definition json?

If you have problems understanding something or getting started, ask here

Moderator: joepal

what does "default strategy" mean in rig definition json?

Postby electricmachine » Thu Jan 23, 2025 2:54 pm

hi everyone. Im trying to realign the skeleton after applying shape keys in three js. the reason for realignment is to apply the same pose to different models, so if there's an easier way to do that please let me know.

i rigged the model with rigify in mpfb, then saved the rig definition as json using the developer section of the addon. I can position bones with cube, vertex, and mean strategies fine, but some bones have "default" as strategy and have no reference points on the base mesh. what reference point do i use to position those bones?

for example "eye.L" has default strategy for both head and tail positions of the bone.
Capture.PNG
electricmachine
 
Posts: 4
Joined: Wed Jan 08, 2025 9:48 am

Re: what does "default strategy" mean in rig definition json

Postby joepal » Sun Jan 26, 2025 3:45 pm

"Default" is a fallback where an absolute coordinate is used ("default_position") rather than an interpolation with reference vertices. It's used when no better strategy could be found. It should generally be avoided if at all possible, since it makes the rig specfic to a body shape.

There's some background text available at https://static.makehumancommunity.org/m ... osing.html but it doesn't explain the default strategy.

If the developer logic for rigging wasn't able to figure out the strategy, then I'd suggest editing the JSON file to manually set a better strategy. I usually enable show vertex indices in the viewport and pick a few vertices surrounding the desired position, then use the indices in a MEAN strategy.
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4598
Joined: Wed Jun 04, 2008 11:20 am

Re: what does "default strategy" mean in rig definition json

Postby electricmachine » Wed Jan 29, 2025 4:21 pm

thanks, i excluded bones with default strategy from calculation and it seems to work for now. i'll try manual editing if they cause any problems.
electricmachine
 
Posts: 4
Joined: Wed Jan 08, 2025 9:48 am


Return to Newbies

Who is online

Users browsing this forum: No registered users and 1 guest