I hope to check whether each pose bone transform values are driven or not by bpy..
At current I check it by bone name which rig vendor set (like sholder_drv), it work for the rig but I hope to know more flexible way to check the bone property have driver or not.
Is there good way only get pose bones which have no driven property? (about this case, I only need to check pose transform value is driven or not)
/////////////////////////////////////
At current I could get driver path of the armatture fcurve
'''
def get_driver_list(ob, li):
drvs = ob.animation_data.drivers
if drvs is not None:
for drv in drvs:
drv_path = drv.data_path
print(drv_path)
li.append(drv_path)
return False
'''
Then Current problem is, data_path type = string so I could get path, but could not find easy way to get bone name, which include in the driver data_path. (need strict check,,)
'pose.bones["lSmallToe4Drv"].rotation_euler'
Is there good way to access bone.property by data_path.to get the bone.name correctly?