I am trying to access my drivers dependencies programmatically while referring to this post:
hello , I would like to update the dependencies via script, but i can’t find the path to access this command , anyone knows what’s the string to update the dependencies via python? thank you very much
But there is no explanation of how they got to the point of :
driver.expression += " "
driver.expression = driver.expression[:-1]
So I have tried looking through these posts to help me but was unable to get anything going:
I’m trying to automatically set up some drivers.
I can create a driver here:
meshKey = bpy.data.meshes['Cube'].shape_keys
But I can’t find where their data is stored (nor can I find where their modifier data is stored).
Can anyone help?
Im trying to access driver information on a bone.
Unfortunately the drivers belongs to the armature like so:
where int is the id of the driver. As i have tonnes of drivers is there a way to access the driver from the bones perspective? if that makes sense.
could be something like
bpy.data.objects['Armature.Rusty'].animation_data.drivers.find['key from bones data']
or come from the bone’s data side…though i dont see any way to :…
None of which helped. Here is a picture up my setup:
I am at a total loss, and don’t see how I can access the name of the variable to change it in order to update it programmatically, one line returned such:
Traceback (most recent call last):
File "<blender_console>", line 1, in <module>
AttributeError: 'FCurve' object has no attribute 'expression'
So what am I missing, where have I gone wrong?