Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Hughes <khughes@pacific.edu>2008-05-01 22:52:26 +0400
committerKen Hughes <khughes@pacific.edu>2008-05-01 22:52:26 +0400
commita87d82023a2790ae62032eb8c272bda0262c5a23 (patch)
tree79dbd1d90764a33663bc1b17e5f825fb611bc7cc /source/blender/python/api2_2x/doc
parent3eac2b2faa5748c319352367c0dd6b7d6c358fe2 (diff)
Add library.name attribute, which returns the actual library name used by blender (this may be different from the library.filename attribute).
Diffstat (limited to 'source/blender/python/api2_2x/doc')
-rw-r--r--source/blender/python/api2_2x/doc/LibData.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/python/api2_2x/doc/LibData.py b/source/blender/python/api2_2x/doc/LibData.py
index 01f09521cbe..47bd7fdb763 100644
--- a/source/blender/python/api2_2x/doc/LibData.py
+++ b/source/blender/python/api2_2x/doc/LibData.py
@@ -33,9 +33,8 @@ def load(filename,relative=False):
@type filename: string
@param filename: The filename of a Blender file. Filenames starting with "//" will be loaded relative to the blend file's location.
- @type relative: int
- @param relative: Convert relative paths to absolute paths (default).
-Setting this parameter to True will leave paths relative.
+ @type relative: boolean
+ @param relative: Convert relative paths to absolute paths (default). Setting this parameter to True will leave paths relative.
@rtype: Library
@return: return a L{Library} object.
"""
@@ -49,8 +48,10 @@ class Libraries:
It provides access to scenes, objects, meshes, curves, metaballs,
materials, textures, images, lattices, lamps, cameras, ipos, worlds,
fonts, texts, sounds, groups, armatures, and actions.
- @ivar filename: The path to the library
+ @ivar filename: The filename of the library, as supplied by user.
@type filename: string
+ @ivar name: The path to the library, as used by Blender. If the filename supplied by the user is relative, but the relative option to L{library.load()<load>} is False, the name will be the absolute path.
+ @type name: string
@ivar scenes: library L{scene<Scene.Scene>} data
@type scenes: L{LibData}
@ivar objects: library L{object<Object.Object>} data