Warning:
This module is being considered for deprecation. Users should
consider using the new
Library module and stay tuned to see which module is supported
in the end.
Example:
import Blender
from Blender import Library
def f(name):
open_library(name)
def open_library(name):
Library.Open(name)
groups = Library.LinkableGroups()
for db in groups:
print "DATABLOCK %s:" % db
for obname in Library.Datablocks(db):
print obname
if 'Object' in groups:
for obname in Library.Datablocks('Object'):
Library.Load(obname, 'Object', 0) # note the 0...
Library.Update()
Library.Close()
b.Redraw()
b.Window.FileSelector(f, "Choose Library", "*.blend")
bool
|
|
|
Close()
Close the currently open library file, if any. |
source code
|
|
string
|
|
list of strings
|
|
|
Datablocks(group)
Get all datablock objects of the given 'group' available in the
currently open library file. |
source code
|
|
|
Load(datablock,
group,
update=1,
linked=0)
Load the given datablock object from the current library file |
source code
|
|
|
|
list of strings
|
LinkedLibs()
Return a list of all libs used in the the open .blend file (direct
and indirect). |
source code
|
|