I’ve been trying to edit a Python script I wrote for 2.49b to 2.6x. I have a function that loads data from a library, but I don’t know how to replace it with what is available from the API in 2.62.
def load_objects(filename,obj_list): bpy.types.Library.Open(filename) cfile_objs = Library.Datablocks("Object") for c in obj_list: if member(c,cfile_objs): obW = Library.Load(c,"Object",0) bpy.types.Library.Update() bpy.types.Library.Close()
Blender says that bpy.types.Library.Open was not found. I couldn’t find anything from http://www.blender.org/documentation/blender_python_api_2_62_1/bpy.types.Library.html?highlight=library#bpy.types.Library that opens a file. In general, I am having a lot of trouble understanding the Python API documentation for 2.6x, even though I had no trouble understand it for 2.49b.