Page MenuHome

Python API: No way to add/remove driver variable targets
Open, NormalPublic

Description

Currently the Python API can't add/remove targets,

Example usage for an existing driver.

target = bpy.context.object.animation_data.drivers[0].driver.variables['var'].targets.new()
bpy.context.object.animation_data.drivers[0].driver.variables['var'].targets.remove(target)

See: bpy.types.DriverVariable.targets.

This task is to extend the API, for reference see rna_Driver_new, rna_Driver_remove for refence.

Details

Type
To Do