LibraryFolder#
A folder of a Library (library.folder(path)): its shelved items, its child folders, and new, add and remove.
library and path describe the Python view; assigning them does not rename/move project data.
class LibraryFolderUsage and examples
Members: items · folders · new · add · remove
items#
items -> Collection[DataBlock] # read-onlyShelved datablocks in this folder.
folders#
folders -> tuple[LibraryFolder, ...] # read-onlyDirect child folders.
new#
new(name)Creates a child folder and returns its LibraryFolder. name is one folder name, not a destination path.
add#
add(block)Shelves a datablock and returns the same handle. Existing scene uses remain unchanged.
remove#
remove(block=None)With block, removes that Library entry. Without block, removes this organizational folder and its entries. Returns None. Datablocks and scene uses remain. Invalid folder operations are rejected with PlupyError.
Related types#
Collection · DataBlock · Library · PlupyError
Source#
- _live.py:1489