plugin_load
add_override(loaded_collection)
Add overrides for the loaded armatures.
Source code in client/ayon_blender/api/plugin_load.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | |
get_local_collection(overridden_collections, loaded_collection)
Get the local (overridden) collection.
To get it we check all collections with a library override and check if they have the loaded collection as their reference. If a collection is not in the provided (known) override collections, we assume it's the newly created one.
Source code in client/ayon_blender/api/plugin_load.py
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | |
get_overridden_collections_from_reference_collection(reference_collection)
Get collections that are overridden versions of the reference collection.
Yields:
| Type | Description |
|---|---|
Collection | All collections that have an override library and have the |
Collection |
|
Source code in client/ayon_blender/api/plugin_load.py
82 83 84 85 86 87 88 89 90 91 92 93 94 95 | |
load_collection(filepath, link=True, lib_container_name=None, group_name=None)
Load a collection to the scene.
Source code in client/ayon_blender/api/plugin_load.py
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 | |