Skip to content

Refitting fails on a custom rig #305

@met4citizen

Description

@met4citizen

Describe the bug

  • I created a new human character using: New human | From scratch | Create human
  • Loaded my custom rig from a local file: Developer | Load rig | "talkinghead.mpfbskel"
  • Loaded my custom weights: Developer | Load weights | "talkinghead.mhw"
  • When I then attempt to refit using Model| Refit assets to basemesh, I receive the following error: "FileNotFoundError: [Errno 2] No such file or directory: '/Users/mikasuominen/Library/Application Support/Blender/5.0/extensions/blender_org/mpfb/data/rigs/standard/rig.unknown.json'"

It seems that RigService attempts to identify the rig type based on current bone names. This process fails because my rig uses custom bone names. In a sense, this a good thing, because if the matching logic were to incorrectly identify the rig as a known standard rig, the rig and weights would probably have been modified.

As a temporary workaround, I copied my custom rig file "talkinghead.mpfbskel" to "rig.unknown.json" and my custom weights file "talkinghead.mhw" to "weights.unknown.json". After doing this, refitting works as expected. However, this approach is clearly a hack, and a more robust solution would be preferable.

Screenshots / logs

Image

Platform and versions

  • OS: macOS
  • Blender 5.0
  • MFPB v2.0.13

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions