Vượt Quyền Thư Viện (Library Overrides)#

Library Overrides is a system designed to allow editing linked data, while keeping it in sync with the original library data. Most types of linked data-blocks can be overridden, and the properties of these overrides can then be edited. When the library data changes, unmodified properties of the overridden one will be updated accordingly.

Ghi chú

The old proxy system has been deprecated in Blender 3.0, and fully removed in Blender 3.2. Automatic conversion from proxies to library overrides happens when loading a blend-file, but results on complex characters are not guaranteed and may need manual fixes.

Library overrides supports:

  • Multiple independent overrides of a same linked data (e.g. having the same character multiple times in the same scene).

  • Adding new modifiers and constraints, anywhere in the stack.

  • Recursively chaining overrides (i.e. link and override overrides from another library file, etc.).

Ghi chú

There are known issues that have to be addressed. See the main task of the project, for more details.

Cảnh báo

While in most cases library overrides data is preserved across a loss of reference linked data (if e.g. the library file becomes unavailable or is relocated), there are some exceptions.

The main one is probably posed (but not animated) armature objects, when their Armature obdata itself is not overridden. The Pose bones of an armature object are fully linked to the bones of its Armature obdata, if the later goes missing, the pose bones are definitively lost.

Ghi chú

Sự bố trí chỉnh chu các bộ sưu tập là vấn đề quan trọng

For library overrides to work well, it is much better if all the collections needed by the character are children of the root (linked and instantiated) one, such that there is a clear hierarchy. Otherwise, some data may not be properly automatically overridden, and other operations may be less reliable.

Vượt Quyền Thứ Bậc (Override Hierarchies)#

Hierarchy is a very important concept to understand when working with library overrides. In Blender, a real-life asset (a character, a prop, a set, etc.) is almost never made of a single data-block, but is rather a group of data-blocks with dependency relationships to each-other. E.g. a character will typically have an armature object, several geometry objects, rig-controllers objects, the object data for all of these objects, materials, textures, etc.

These relationships can be represented as a tree, with a root data-block 'linking-in' all its dependencies, recursively. With library overrides, typically, the root of the hierarchy is also the data-block that is directly linked when importing the asset (usually a collection).

This concept of hierarchy can also be seen as some sort of super meta-data-block. It is critical when there are several overrides of the same linked data, since it allows to clearly identify a given data-block to one override, leaving no ambiguity to processes that affect the whole hierarchy (e.g. resyncing overrides with their linked data). It also allows to share relationships between data-blocks of different hierarchies, like a parenting relationships between two different overrides of a same character.

Thực Thể Hóa theo Điểm Đỉnh (Resyncing Overrides)#

The relationships between linked data-blocks can change, resulting in outdated overrides. When this happens, overrides need to be resynced to match the new structure of their hierarchy. Overrides are automatically resynced if needed on blend-files opening. However, it may be needed to resynced them manually sometimes, see Troubleshoot an Override Hierarchy.

Mẹo

Blender is also able to resync library overrides from external libraries, that are then linked into a working file. However, this is a costly process that needs to be fully redone every time the working file is loaded, since Blender cannot edit/modify the external library directly.

So users linking overrides (or creating recursive overrides) should ensure that their library files are regularly updated, to avoid this overhead on file load (typically, opening and saving those library files should be enough to update them).

Mẹo

Bất cứ lúc nào, bạn cũng có thể thay đổi những tùy chọn này trong Cài Đặt Sở Thích Thử Nghiệm (Experimental Preferences) của phần mềm.

Vượt Quyền Bất Khả Biên Soạn (Non-Editable Overrides)#

For technical reasons (how relationships between data-blocks are stored), Blender needs to create overrides of a lot of data-blocks, even when only one or two of them actually needs to be edited by the user. To reduce the amount of information and risk of potential unwanted editing, most of these data-blocks are now marked as non-editable by default. This can be changed once the override has been created.

Tạo một Vượt Quyền (Make an Override)#

Tham Chiếu (Reference)

Trình Biên Soạn (Editor):

Cổng Nhìn 3D, Mục Lục, Tính Chất

Chế Độ (Mode):

Chế Độ Đối Tượng (Object Mode)

Trình Đơn (Menu):

Cổng Nhìn 3D (3D Viewport) ‣ Tiêu Đề (Header) ‣ Đối Tượng (Object) ‣ Vượt Quyền Thư Viện (Library Override) ‣ Tạo (Make) Mục Lục (Outliner) ‣ Trình Đơn Ngữ Cảnh (Context Menu) ‣ Vượt Quyền Thư Viện (Library Override) ‣ Tạo (Make) Thành Tố Điều Khiển ID (ID Widget) ‣ Trình Đơn Ngữ Cảnh (Context Menu) ‣ Vượt Quyền Thư Viện (Library Override) ‣ Tạo (Make)

Tổ Hợp Phím Tắt (Shortcut):

Shift-NCT (LMB) on the 'kết nối'/'vượt quyền' button of an ID Widget.

Kiến Tạo vượt quyền từ các khối dữ liệu đã chọn.

Blender automatically create overrides for all required data-blocks to ensure that valid override hierarchies are created.

Only overrides created from selected items will be user-editable.

Cảnh báo

The support for the creation of library overrides from the ID Widget (mainly from within the Properties editor) is limited. While the most common usages should be supported, especially with Objects, meshes, etc., much remains to be implemented.

Các Mục đã Chọn (Selected Items)#

Depending on where from the override is created, there are several ways to 'select' items to be overridden and user-editable.

Ghi chú

This also applies to the other common operations (Reset and Clear).

The Troubleshoot advanced operations only available from the Outliner always apply to a whole override hierarchy.

Góc Nhìn 3D (3DView)#

Các đối tượng được chọn sẽ được coi là đã lựa chọn.

When a selected object is a local Empty instantiating a linked collection, the following will happen: * The Empty object will be removed. * Its linked collection will be overridden, and that override will be instanced in the same collection in the current View Layer. * If the collection contains Armature objects, they will be user-editable. Otherwise, no created override will be defined as user-editable.

Mục Lục (Outliner)#

The operation can be applied on either the selected items only, their content only, or both.

Mẹo

Using Selected & Content is an easy way to get all newly created overrides immediately user-editable.

Thành Tố Điều Khiển ID (ID Widget)#

Only the linked data-block in the ID Widget is considered as selected, and set as editable once overridden.

Làm Cho Có Thể Biên Soạn Được (Make Editable)#

That same operation can also be used to make existing overrides user-editable, after they have been created, or cleared

Hoàn Lại Vượt Quyền (Reset an Override)#

Tham Chiếu (Reference)

Trình Biên Soạn (Editor):

Cổng Nhìn 3D, Mục Lục, Tính Chất

Chế Độ (Mode):

Chế Độ Đối Tượng (Object Mode)

Trình Đơn (Menu):

Cổng Nhìn 3D (3D Viewport) ‣ Tiêu Đề (Header) ‣ Đối Tượng (Object) ‣ Vượt Quyền Thư Viện (Library Override) ‣ Hoàn Lại (Reset) Mục Lục (Outliner) ‣ Trình Đơn Ngữ Cảnh (Context Menu) ‣ Vượt Quyền Thư Viện (Library Override) ‣ Hoàn Lại (Reset) Thành Tố Điều Khiển ID (ID Widget) ‣ Trình Đơn Ngữ Cảnh (Context Menu) ‣ Vượt Quyền Thư Viện (Library Override) ‣ Hoàn Lại (Reset)

Reset the selected overrides to their original values (from the linked reference data). Unlike with the Clear operation, the overrides remain fully editable, and are never deleted.

Xóa Vượt Quyền (Clear an Override)#

Tham Chiếu (Reference)

Trình Biên Soạn (Editor):

Cổng Nhìn 3D, Mục Lục, Tính Chất

Chế Độ (Mode):

Chế Độ Đối Tượng (Object Mode)

Trình Đơn (Menu):

Cổng Nhìn 3D (3D Viewport) ‣ Tiêu Đề (Header) ‣ Đối Tượng (Object) ‣ Vượt Quyền Thư Viện (Library Override) ‣ Xóa/Dọn Sạch (Clear) Mục Lục (Outliner) ‣ Trình Đơn Ngữ Cảnh (Context Menu) ‣ Vượt Quyền Thư Viện (Library Override) ‣ Xóa/Dọn Sạch (Clear) Thành Tố Điều Khiển ID (ID Widget) ‣ Trình Đơn Ngữ Cảnh (Context Menu) ‣ Vượt Quyền Thư Viện (Library Override) ‣ Xóa/Dọn Sạch (Clear)

Tổ Hợp Phím Tắt (Shortcut):

Shift-NCT (LMB) on the 'vượt quyền' button of an ID Widget.

Reset the selected overrides to their original values, and if possible without breaking the existing hierarchy, delete them and replace them by their linked reference data. Otherwise, keep the overrides but mark them as non-editable.

Biên Soạn một Vượt Quyền (Edit an Override)#

Essentially, an override is edited the same way as a regular local data-block. You can use operators on them, edit their properties from various editors, etc. There are some limitations however, most notably Edit Mode is not allowed for overrides. In most cases, as soon as you edit a property, you can see that it's overridden by its teal blue outline/background.

You can also animate overrides, animated properties just replace/supersede overrides then. Note that you cannot override/edit an existing animation, you'll have to create a new action. You can manually define or remove an override from the context menu of the relevant property. If an override is not editable, you have to make it editable first.

Định Nghĩa các Vượt Quyền (Define Overrides)#

Tham Chiếu (Reference)

Trình Biên Soạn (Editor):

Bất Cứ

Chế Độ (Mode):

Chế Độ Đối Tượng (Object Mode)

Tính Chất (Property):

Lựa Chọn (Select) ‣ Chọn Tiếp Theo (Select Next), Lựa Chọn (Select) ‣ Chọn Đằng Trước (Select Previous)

Mark a property to be overridden in the local blend file. For array properties all elements will be overridden.

Định Nghĩa Đơn Vượt Quyền (Define Single Override)#

Tham Chiếu (Reference)

Trình Biên Soạn (Editor):

Bất Cứ

Chế Độ (Mode):

Chế Độ Đối Tượng (Object Mode)

Tính Chất (Property):

Trình Đơn Ngữ Cảnh (Context Menu) ‣ Định Nghĩa Đơn Vượt Quyền (Define Single Override)

Mark a property to be overridden in the local blend file. For array properties only the selected element will be overridden.

Xóa các Vượt Quyền (Remove Overrides)#

Tham Chiếu (Reference)

Trình Biên Soạn (Editor):

Bất Cứ

Chế Độ (Mode):

Chế Độ Đối Tượng (Object Mode)

Tính Chất (Property):

Trình Đơn Ngữ Cảnh (Context Menu) ‣ Xóa các Vượt Quyền (Remove Overrides) Trình Đơn Ngữ Cảnh (Context Menu) ‣ Xóa sự Vượt Quyền (Remove Override)

Remove the property from the overrides. The value of the linked in data-block will be used. For array properties all elements will be removed from the override.

Xóa Đơn Vượt Quyền (Remove Single Override)#

Tham Chiếu (Reference)

Trình Biên Soạn (Editor):

Bất Cứ

Chế Độ (Mode):

Chế Độ Đối Tượng (Object Mode)

Tính Chất (Property):

Trình Đơn Ngữ Cảnh (Context Menu) ‣ Xóa Đơn Vượt Quyền (Remove Single Override)

Remove the property from the overrides. The value of the linked in data-block will be used. For array properties only the selected elements will be removed from the override.

Điều Tra và Xử Lý Sự Cố một Thứ Bậc Vượt Quyền (Troubleshoot an Override Hierarchy)#

Tham Chiếu (Reference)

Trình Biên Soạn (Editor):

Mục Lục (Outliner)

Chế Độ (Mode):

Chế Độ Đối Tượng (Object Mode)

Mục Lục (Outliner):

Trình Đơn Ngữ Cảnh (Context Menu) ‣ Vượt quyền thư viện (Library override) ‣ Điều Tra và Xử Lý Sự Cố (Troubleshoot)

These operations are only available from the Outliner contextual menu. They can help fixing a broken override hierarchy.

Tái Đồng Bộ Hóa (Resync)#

Tham Chiếu (Reference)

Trình Biên Soạn (Editor):

Mục Lục (Outliner)

Chế Độ (Mode):

Chế Độ Đối Tượng (Object Mode)

Mục Lục (Outliner):

Trình Đơn Ngữ Cảnh (Context Menu) ‣ Vượt quyền thư viện (Library override) ‣ Điều Tra và Xử Lý Sự Cố (Troubleshoot) ‣ Tái Đồng Bộ Hóa (Resync)

The hierarchy of the linked data (the relationships between linked data-blocks) can change. Overrides need to be resynced to match the new hierarchy. This operator will resync the override to match the new hierarchy in the library.

Cảnh báo

While resyncing a library override it is possible that edited overrides get deleted if they are changed in the original library. If this is the case, a warning message will be displayed stating how many overrides were deleted, if the deletion is undesirable the resync can be undone before saving the blend-file.

Ghi chú

This Process is Automatic

Thông thường thì thao tác này diễn ra tự động khi blender phát hiện ra là cần thiết, trong lúc nạp tập tin, trừ khi nó bị tắt đi trong Cài Đặt Sở Thích Thử Nghiệm (Experimental Preferences).

Bắt Buộc Tái Đồng Bộ Hóa (Resync Enforce)#

Tham Chiếu (Reference)

Trình Biên Soạn (Editor):

Mục Lục (Outliner)

Chế Độ (Mode):

Chế Độ Đối Tượng (Object Mode)

Mục Lục (Outliner):

Trình Đơn Ngữ Cảnh (Context Menu) ‣ Vượt quyền thư viện (Library override) ‣ Điều Tra và Xử Lý Sự Cố (Troubleshoot) ‣ Bắt Buộc Tái Đồng Bộ Hóa (Resync Enforce)

In some cases, especially with older blend-files that were saved with 'broken' (non-hierarchy-matching) overrides, a regular resync itself cannot rebuild properly the override as expected (e.g. some objects might go missing). To solve this issue, this operator rebuilds the local override from its linked reference, as well as its hierarchy of dependencies, enforcing that hierarchy to match the linked data (i.e. ignoring existing overrides on data-blocks properties). This is similar to a regular resync, but is more forceful, aggressive, at the cost of a potential loss of some overrides on ID pointers properties.

Xóa (Delete)#

Tham Chiếu (Reference)

Trình Biên Soạn (Editor):

Mục Lục (Outliner)

Chế Độ (Mode):

Chế Độ Đối Tượng (Object Mode)

Mục Lục (Outliner):

Trình Đơn Ngữ Cảnh (Context Menu) ‣ Vượt quyền thư viện (Library override) ‣ Điều Tra và Xử Lý Sự Cố (Troubleshoot) ‣ Xóa (Delete)

Remove the whole library override hierarchy, and replace all of these override data-blocks by their original linked data-blocks. This fully reverts the Make operation.