I have a driver for the “X euler rotation” value of a posed armature bone. This is the (simplified) expression:
It works, but my problem is the warning that the “driver expression may not work correctly” and the tip to use “variables instead of bpy.data”. I did try to get rid of bpy.data by adding a variable, but nothing I use for the variable seems to be valid, i.e. the “Path” is shown in red. The only two options in this expression I have is replacing either bpy.data.actions[‘HumanLeg’] or bpy.data.actions[‘HumanLeg’].fcurves by a variable. So the expression would be either var.fcurves.evaluate(42) or var.evaluate(42)
However, if I select the action and don’t enter anything in the Path textbox, it’s invalid. Entering fcurves in the Path textbox is also invalid. So I don’t know what to enter. Any clue how to solve this?
I just see that it is valid to enter just fcurves as the data path. Consequently, I should be able to enter var.evaluate(42) as the scripted expression, but this is now considered an “Invalid Python expression”. What’s wrong now?