can't generate rigify rig

Issue #1902 resolved
Alessandro Padovani created an issue

diffeomorphic 1.7.3.1996, blender 4.0.2 and 3.6.7

There’s a context error when we try to generate rigify, both blender 3 and 4. The mhx rig generates fine.

steps:

  1. import G8F
  2. convert to rigify

Comments (4)

  1. Thomas Larsson repo owner

    Fixed in last commit.

    Recently I have been working with scenes with two interacting characters. In this situation, it is convenient if both armatures stay selected and in pose mode if I load a pose to one of them or snap IK bones. If the code switches to pose mode for the active armature, the other tends to be deselected. Since the pose bones can be accessed from object mode as well, I decided to skip pose mode everywhere.

    However, it turns out that pose operators (bpy.ops.pose) throw a runtime error if they are called from object mode, so now the plugin goes into pose mode before using a pose operator. It only happens twice in the entire plugin.

  2. Thomas Larsson repo owner

    OK, there are two more places where poselib operators (bpy.ops.poselib) are used, and they require pose mode too.

  3. Log in to comment