Page 1 of 1

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

PostPosted: Thu Jan 23, 2025 2:54 pm
by electricmachine
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

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

PostPosted: Sun Jan 26, 2025 3:45 pm
by joepal
"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.

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

PostPosted: Wed Jan 29, 2025 4:21 pm
by electricmachine
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.