Blender Git Loki

Git Commits -> Revision 64a37fa

Revision 64a37fa by Joshua Leung (master)
April 26, 2011, 13:49 (GMT)
Adding support for adding copies of existing drivers to other animdata
blocks via PyAPI/RNA

For example:
ob = bpy.context.active_object # assumes default cube has some drivers
added already before running script
dst = bpy.data.objects["Camera"]

adt = dst.animation_data_create()
for driver in ob.animation_data.drivers:
new_driver = adt.drivers.from_existing(driver)

Commit Details:

Full Hash: 64a37fadf09e32772520272a831034a9fe790fc8
SVN Revision: 36342
Parent Commit: 481aed1
Lines Changed: +53, -10

2 Modified Paths:

/source/blender/blenkernel/intern/anim_sys.c (+8, -8) (Diff)
/source/blender/makesrna/intern/rna_animation.c (+45, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021