How to call rigify operators? I'd like to run some rigify operators. As you might know, the operators are &quot;unique&quot; for each armature because of their rig_id. If I have the rig_id = &quot;i8fj1rbnfbd76bf5&quot; then it takes the following syntax to call the operators:
bpy.ops.pose.rigify_limb_ik2fk_i8fj1rbnfbd76bf5(prop_bone='thigh_parent.L',
                                                  pole_prop=&quot;pole_vector&quot;, 
                                                  fk_bones='[&quot;thigh_fk.L&quot;, &quot;shin_fk.L&quot;, &quot;foot_fk.L&quot;, &quot;toe.L&quot;]',
                                                  ik_bones='[&quot;thigh_ik.L&quot;, &quot;MCH-shin_ik.L&quot;, &quot;MCH-thigh_ik_target.L&quot;]', 
                                                  ctrl_bones='[&quot;thigh_ik.L&quot;, &quot;foot_ik.L&quot;, &quot;thigh_ik_target.L&quot;]', 
                                                  extra_ctrls='[&quot;foot_heel_ik.L&quot;, &quot;foot_spin_ik.L&quot;]')

bpy.ops.pose.rigify_limb_ik2fk_i8fj1rbnfbd76bf5(prop_bone='upper_arm_parent.L',
                                                  pole_prop=&quot;pole_vector&quot;, 
                                                  fk_bones='[&quot;upper_arm_fk.L&quot;, &quot;forearm_fk.L&quot;, &quot;hand_fk.L&quot;]',
                                                  ik_bones='[&quot;upper_arm_ik.L&quot;, &quot;MCH-forearm_ik.L&quot;, &quot;MCH-upper_arm_ik_target.L&quot;]', 
                                                  ctrl_bones= '[&quot;upper_arm_ik.L&quot;, &quot;hand_ik.L&quot;, &quot;upper_arm_ik_target.L&quot;]', 
                                                  extra_ctrls='[]')

I was thinking of concatenating the id with the rest of the syntax and converting that into an operator call that I can execute. Is that possible or what alternatives do I have?
I think you can use Python's exec() or eval() to do this, if the operator is already registered
import bpy
rig_id = &quot;i8fj1rbnfbd76bf5&quot;
op = eval(&quot;bpy.ops.pose.rigify_limb_ik2fk_&quot; + rig_id)
# or with exec
# exec(&quot;op = bpy.ops.pose.rigify_limb_ik2fk_&quot; + rig_id)

# now you can call op
op(prop_bone='upper_arm_parent.L') # and rest of arguments