[Bf-python] bpy.libraries modules
Ken Hughes
khughes at pacific.edu
Sat Mar 17 05:10:48 CET 2007
One other thought:
Should there be iterators for the various groups? The current Library
modules has Library.Datablocks(group), which get all datablock objects
of the given 'group' available. Otherwise I don't see how you can find
out what things are there to be appended/linked.
So something like:
lib = bpy.libraries.load('//this.blend')
for ob in lib.objects:
if ob[:6] == 'Camera':
bpy.scenes.active.link(lib.objects.append(ob))
Ken
More information about the Bf-python
mailing list