Load(filename=None)
Load a Blender .blend file or any of the other supported file
formats.
Supported formats:
-
Blender's .blend;
-
DXF;
-
Open Inventor 1.0 ASCII;
-
Radiogour;
-
STL;
-
Videoscape;
-
VRML 1.0 asc.
-
- Parameters:
filename -
the pathname to the desired file. If 'filename' isn't given or
if it contains the substring '.B.blend', the default .B.blend
file is loaded.
(type=string)
Warnings:
- loading a new .blend file removes the current data in Blender. For
safety, this function saves the current data as an autosave file in the
temporary dir used by Blender before loading a new Blender file.
- after a call to Load(blendfile), current data in Blender is lost,
including the Python dictionaries. Any posterior references in the script
to previously defined data will generate a NameError. So it's better to
put Blender.Load as the last executed command in the script, when this
function is used to open .blend files.
- if in edit mode, this function leaves it, since Blender itself
requires that.
|