Rigify - How do I change 'Bend Rotation Axis' parameter using Python? I’m trying to change this 'Bend Rotation Axis' parameter using Python: Bone Tab &gt; Rigify Type &gt; Bend Rotation Axis. Unfortunately, the output of the Info window isn’t shedding much light on this:

I have tried this:
 bpy.data.objects['metarig'].pose.bones['thumb.01.L'].primary_rotation_axis = 'X'

... but I’m getting the following error:

AttributeError: 'PoseBone' object has no attribute 'primary_rotation_axis'

When I hover over the Bend rotation axis dropdown, I get the following tooltip:

Q: How do I access the Rigify parameters class and assign my values?
Figured it out:

 bpy.data.objects['metarig'].pose.bones['thumb.01.L'].rigify_parameters.roll_alignment = 'manual'
 bpy.data.objects['metarig'].pose.bones['thumb.01.L'].rigify_parameters.copy_rotation_axes = [True, False, False]