资产浏览器¶
The Asset Browser is the main interface for organizing and using assets.
界面¶
主区块¶
The center region of the Asset Browser lists the assets contained in the selected catalog.
Click LMB to select a single asset. Additionally hold Ctrl to add/remove that asset to/from the selection, or Shift to select a range of assets. You can also drag LMB to perform a box select.
The region has a context menu with the following operations:
Asset Library Region¶
The region on the left lets you select an asset library and shows its catalogs. You can show/hide this region by pressing T.
- 姿产库
The asset library whose catalogs to show.
- 所有库:
Show catalogs from all available libraries.
- 当前文件:
Show the catalogs in the current blend-file (even if that file is not yet part of an asset library). See 当前文件资产库 for more information.
- 基本的:
Show the catalogs that come bundled with Blender.
Any libraries that you added in the File Path Preferences are listed here too.
- Copy Bundle to Asset Library
Shown when Asset Library is set to Current File and the current blend-file is an asset bundle that's not yet part of an asset library.
Lets you select a target asset library, then opens a File Browser in that library's root folder so you can save the current blend-file there. Once saved, the assets in the blend-file become available as part of the library.
- Catalogs
Tree view that shows the catalogs of the selected asset library. A catalog is a group of assets; when you select one, only the assets in that catalog and its child catalogs will be listed.
You can rename a catalog by double-clicking it, or assign it to a different parent catalog by dragging and dropping.
加载项和功能,如姿态库可以在这里显示自定义面板。
资产详情区域¶
The region on the right shows the metadata of the active asset. You can show/hide this region by pressing N or clicking the gear icon in the header.
Only metadata of assets contained in the current blend-file can be edited.
- 名称
The asset's name. Unique for the asset data type within the same blend-file.
- 源
包含资产的 blend 文件的完整路径。
- 打开Blend文件
Opens the blend-file that contains the asset in a new Blender instance. When this instance is closed, the Asset Browser will be automatically refreshed.
- 许可证
Optional name of the license under which this asset is distributed. Not used by Blender itself.
- 版权符号
Optional copyright notice. Not used by Blender itself.
- 描述
Optional asset description. Not used by Blender itself.
- 作者
资产作者的可选字段。Blender 本身不使用。
预览¶
显示资产的预览图像。参见资产预览。
- 加载自定义预览
Opens a File Browser where you can select a new image for the asset preview.
- 生成预览
Autogenerate a new preview for the asset.
- 预览
带预览的数据块菜单。
- 渲染活动物体
Generates a preview based on the 3D Viewport's Active object. This is useful for node groups, which cannot automatically generate their own preview.
编辑资产¶
As a general rule, an asset can be used by dragging it from the Asset Browser to the desired location. Objects and worlds can be dragged from the Asset Browser into the scene. Materials can be dragged onto the object that should use them. Geometry nodes can also be dragged onto objects to add a 几何节点修改器. The use of pose assets is different, and is described in 姿态库.
使用资产时可能会发生几种情况,具体取决于资产浏览器的以下配置:
- 导入方法
Determines how data is managed when an asset is imported. This option can be found in the center of the Asset Browser header (when an asset library other than Current File or Essentials is selected):
- 遵循偏好设置
Use the import method set in the File Path Preferences.
- 关联
等同于
The asset will be linked to the current blend-file, and thus be read-only. Later changes to the asset file will be reflected in all files that link it.
- 追加
等同于
The asset and all its dependencies will be copied into the current file. Dragging a material into the scene three times will result in three independent copies. Dragging an object into the scene three times will also result in three independent copies.
在这种情况下,"从属关系"是指资产所指的一切。对于对象,这可以是其网格和材质,也可以是修改器、约束或驱动程序使用的其他对象。
由于该文件现在有自己的资产副本,因此以后对资产文件的更改不会反映在其附加到的文件中。
- 追加(重用数据)
特定于资产浏览器。
The first time an asset is used, it will be appended, including its dependencies, just as described previously. However, Blender will keep track of where it originated, and the next time the asset is used, as much data as possible will be reused. Dragging a material into the scene three times will only load it once, and just assign the same material three times. Dragging an object into the scene three times will create three copies of the object, but all copies will share their mesh data, materials, etc.
由于该文件现在有自己的资产副本,因此以后对资产文件的更改不会反映在其附加到的文件中。
Tip
实例化集合
当从文件浏览器追加时,模仿实例集合选项
Some asset types such as collections can be created as an instanced collection. This is done by enabling the Instance option after dragging collection assets into the 3D Viewport. By enabling this option, an empty object is added that uses an instance of the collection. If this option is disabled, the full collection hierarchy will be added to the scene.
将始终实例化当前文件中的集合资产。
请注意,所有常规的 Blender 操作都是在资产被添加到当前文件之后才可用的。例如,你可以选择将一个物体关联到场景中;这也将关联它的网格和材质。然后,你可以使物体本身成为本地的(
),同时保持网格和材质与资产文件的关联。这将产生一个本地的、可编辑的物体,并使网格和材质自动与资产库的任何变化保持同步。资产预览¶
Preview images are typically generated automatically when you mark a data-block as an asset. Objects are captured from their local -Y axis, while collections are captured from the global -Y axis (as these don't have a local axis).
If the auto-generated preview image isn't sufficient, you can replace it by a custom one.
有关姿态资产的预览,请参阅控制预览图像的外观。
资产包¶
资产包 是不引用任何其他文件的 blend 文件,其名称以 _bundle.blend
结尾。任何纹理和其他外部文件都需要打包到当前的 blend 文件中。
可以通过资产浏览器将资产捆绑包复制到资产库:
打开资产包 blend 文件。
Switch its Asset Browser to Current File (if it's not set to that already).
单击 将捆绑包复制到资源库。
选择要将其复制到的资产库。
A File Browser will open at the root folder of the selected asset library. Choose the desired location of the blend-file, and click the Copy to Asset Library button.
blend 文件将保存在选定的位置,资产捆绑包的任何目录都将合并到目标资产库中。
Note
"资产" 一词和 "捆绑" 一词都被广泛使用,不一定与这里所描述的含义相同。并非所有以 "资产捆绑包" 形式呈现的文件都具有 复制到资产库 功能;为此,捆绑包文件需要遵守上述定义。