blender/release
Campbell Barton 8c526e79e3 library loading api.
this is not well suited to RNA so this is a native python api.

This uses:
  bpy.data.libraries.load(filepath, link=False, relative=False)

however the return value needs to use pythons context manager, this means the library loading is confined to a block of code and python cant leave a half loaded library state.


eg, load a single scene we know the name of:
  with bpy.data.libraries.load(filepath) as (data_from, data_to):
      data_to.scenes = ["Scene"]


eg, load all scenes:
  with bpy.data.libraries.load(filepath) as (data_from, data_to):
      data_to.scenes = data_from.scenes


eg, load all objects starting with 'A'
  with bpy.data.libraries.load(filepath) as (data_from, data_to):
      data_to.objects = [name for name in data_from.objects if name.startswith("A")]

As you can see gives 2 objects like 'bpy.data', but containing lists of strings which can be moved from one into another.
2011-03-12 16:06:37 +00:00
..
bin patch [#25972] blender-thumbnailer.py: GVFS support 2011-02-09 02:09:30 +00:00
datafiles == UI icons == 2011-02-27 16:58:37 +00:00
freedesktop - CMake, print message to run 'make install', this is new and should help avoid confusion: [#26425] SVN release can't find scripts/modules and doesn't start properly 2011-03-09 21:19:15 +00:00
irix-6.2-mips correct fsf address 2010-02-12 13:34:04 +00:00
plugins remove some paranoid NULL checks, since the pointers are used already. 2010-12-17 19:05:10 +00:00
scripts library loading api. 2011-03-12 16:06:37 +00:00
text Correct report [#26139] Documentation is incorrect 2011-02-19 00:58:46 +00:00
windows By default install to the user profile instead of Program Files. This because right now the installer 2010-12-27 12:42:51 +00:00
environment-macosx Continue development of bfile system. 2009-10-19 18:44:09 +00:00
environment-mswindows Continue development of bfile system. 2009-10-19 18:44:09 +00:00
environment-unix Continue development of bfile system. 2009-10-19 18:44:09 +00:00