angavrilov / angavrilov-rigs

Custom Rigify rigs (feature set package)
73 stars 8 forks source link

BodyIK - Exception thrown when changing arm/leg Rotation Axis to X/Z manual #5

Closed wiseax closed 3 years ago

wiseax commented 3 years ago

Issue is experienced with the following setup(s): Blender version: 3.0 Alpha (08/02/2021) and 2.92 Experimental Rigs version: current as of 08/02/2021

Changing the Rotation Axis on any _upperarm or thigh bone from Automatic to X manual or Z manual in default BodyIK metarig produces the following error upon generation:

Error: Generation has thrown an exception: name 'compute_chain_x_axis' is not defined


Exact steps to test / reproduce error: (Blender 3.0 Alpha, after installing the current Experimental Rigs feature set)

  1. [Object Mode] add new Bodyik Human (Meta-Rig) 3D Viewport > Add > Armature > BodyIK > Bodyik Human (Meta-Rig)

  2. [Pose Mode] select either _upper_arm or thigh bone and change its Rigify Rotation Axis from Automatic to X manual or Z manual_ Properties > Bone Properties > Rigify Type > Options > Rotation Axis

  3. Generate Rig


Adding import for _compute_chain_xaxis from rigify.utils.bones on line 30 in _./rigs/body_ik/limbrigs.py resolved the issue for me in both Blender 3.0 Alpha & 2.92 and the resulting rig appears to function correctly (see attached image for code clarification)

limb_rigs py_snip


These rigs are so much fun :) Alan Wisecup