Exporting Assets导出资产
The workflow of Clarisse is very asset centric and there are many reasons why you may want to export your work as assets to:
Clarisse 的工作流程非常以资产为中心,您可能出于多种原因希望将您的作品作为资产导出到:
This is why there are quite a few ways to export assets out of Clarisse.
这就是为什么有很多方法可以将资产从 Clarisse 中导出。
The content of any context can be externalized from the current project. This operation complements the ability to localize references. It will create a Clarisse project file from the content of the context and turn the context into a Reference (if not already). Any kinds of context can be exported. When exporting a context already referencing external assets, its content is externalized into a project file with all the applied overrides and the context is automatically referencing the saved project as if it had been referenced using File > Reference > File...
任何上下文的内容都可以从当前项目中外化。此操作补充了本地化引用的能力。它将根据上下文的内容创建一个 Clarisse 项目文件,并将上下文转换为参考(如果还没有的话)。可以导出任何类型的上下文。导出已引用外部资产的上下文时,其内容将外部化到具有所有应用覆盖的项目文件中,并且上下文会自动引用已保存的项目,就好像它已使用文件 > 引用 > 文件...
To export a context, select it then click on File -> Reference -> Export Context... A file browser opens and allows to choose where to save the resulting project, exactly as if we were saving a project. Once exported, the context automatically becomes a reference in the current project.
要导出一个上下文,选择它然后点击 File -> Reference -> Export Context... 打开一个文件浏览器并允许选择保存结果项目的位置,就像我们保存一个项目一样。导出后,上下文自动成为当前项目中的引用。
Note |
If the exported context is already a Reference, its overridden attributes will keep their edits but will not be considered as overridden anymore (they will loose their underlined blue display) because the edits will be exported into the newly referenced file. 如果导出的上下文已经是参考,则其覆盖的属性将保留其编辑,但不会再被视为已覆盖(它们将失去带下划线的蓝色显示),因为编辑将被导出到新引用的文件中。 |
You can export contexts as alembic files using the File > Export > Context As Alembic... Clarisse will export the geometries contained in the selected context and sub-context(s) to a specified alembic file you can use back in Clarisse, or any other DCC application. It will resolve all dependencies for you so that the resulting cache is as close as possible to what's defined in the exported context.
您可以使用 File > Export > Context As Alembic... 将上下文导出为 alembic 文件... Clarisse 会将所选上下文和子上下文中包含的几何图形导出到您可以在 Clarisse 中使用的指定 alembic 文件,或任何其他 DCC 应用程序。它将为您解决所有依赖关系,以便生成的缓存尽可能接近导出上下文中定义的内容。
Options选项 |
Description描述 |
Filename 文件名 |
Alembic Output file. Alembic输出文件。 |
Frame Range 帧范围 |
First and last frame of the animation you want to export, for animated geometry. 要导出的动画的第一帧和最后一帧,用于动画几何体。 |
Write One Frame Per File 每个文件写入一帧 |
Alembic is optimized to store full animations in one file, similar to video file formats, instead of numbered files sequences. However, in special cases, you may prefer to work with one numbered file per frame. This attribute allows this. Alembic 经过优化,可以将完整的动画存储在一个文件中,类似于视频文件格式,而不是编号的文件序列。但是,在特殊情况下,您可能更喜欢每帧使用一个编号文件。该属性允许这样做。 Keep in mind de duplication over time won’t work with this option enabled, and each frame will store the full geometry, even if it is static. 请记住,启用此选项后,重复数据删除将不起作用,并且每个帧都将存储完整的几何图形,即使它是静态的。 |
Transfer Source Data 传输源数据 |
By default, event if the context geometry is read from an existing alembic file, Clarisse exports its internal, processed geometry. This guaranties that the exported alembic is exactly the same as the geometry displayed in Clarisse. 默认情况下,如果上下文几何是从现有的 alembic 文件中读取的,Clarisse 会导出其内部的已处理几何。这保证了导出的蒸馏器与 Clarisse 中显示的几何图形完全相同。 By enabling this attribute, Clarisse will directly copy the source alembic to the exported one, without any geometry processing, providing a much faster export. 通过启用此属性,Clarisse 将直接将源alembic 复制到导出的alembic,无需任何几何处理,从而提供更快的导出。 |
Export Combiners 导出组合物体 |
When checked, combiners will be exported as pivots with their sub-objects as direct children. Sub-combiners are exported recursively. 选中后,组合器将作为枢轴导出,其子对象作为直接子对象。子组合器以递归方式导出。 |
Export Scatterers 导出发散物体 |
Enable/Disable the export of Scatterers. 启用/禁用 Scatterers 的导出。 |
Scatterer Export Mode: Instances As Geometries Scatterer 导出模式:实例作为几何图形 |
Export the scatterer using the full geometry, as displayed in Clarisse. 使用完整几何体导出散射体,如 Clarisse 中所示。 Be careful since this can produce extremely heavy files, impossible to load in most 3d software. It is usually better to use the “instances as bounding boxes” mode, or better, export the source geometry and the support point cloud, to reconstruct the scatterer in the external DCC. 小心,因为这会产生非常大的文件,大多数 3d 软件都无法加载。通常最好使用“实例作为边界框”模式,或者更好地导出源几何和支持点云,在外部 DCC 中重建散射体。 |
Scatterer Export Mode: Instances as bounding Boxes Scatterer 导出模式:实例作为边界框 |
Export the scatterer using bounding boxes instead of the full geometry, leading to much more manageable alembic files. Depending on the software, you may be able to reconstruct the scatterer by replacing the boxes by the original source geometry. 使用边界框而不是完整几何体导出散射体,从而生成更易于管理的 alembic 文件。根据软件的不同,您可以通过将框替换为原始源几何体来重建散射体。 |
Export Properties 导出属性 |
Enable the export of custom geometry properties. This is especially useful for point clouds, to store transform and instancing data, allowing the scatterer reconstruction outside of Clarisse. 启用自定义几何属性的导出。这对于点云特别有用,用于存储变换和实例化数据,允许在 Clarisse 之外进行散射体重建。 |
Fill Sparse properties 填充稀疏属性 |
Check this option if you have issues reading the alembic file in an external software (some don’t like the mix of empty/filled properties on the same geometry). 如果您在外部软件中读取 alembic 文件时遇到问题,请选中此选项(有些人不喜欢在同一几何体上混合使用空/填充属性)。 |
The Alembic exporter comes with some limitations that are partially due to Clarisse and the Alembic library. Currently, Clarisse doesn't export implicit geometries, render displacements, volumes, materials and textures and lights. Since there's no efficient way to represent scatterers in Alembic, exporting scenes with big scatterers can result in very large files that will be very challenging to load back in any applications.
Alembic 导出器有一些限制,部分原因是 Clarisse 和 Alembic 库。 目前,Clarisse 不导出隐式几何图形、渲染置换、体积、材质和纹理以及灯光。 由于在 Alembic 中没有表示散射体的有效方法,因此导出具有大散射体的场景可能会导致文件非常大,在任何应用程序中重新加载都非常困难。
Clarisse can export scenes contained in a selected context and sub-context(s) as a USD file. To export a context as USD, go to File > Export > Context As USD... Depending on the mode you choose, the resulting USD can either be standalone (in which case all external file dependencies are embedded in the output file) or exported as an override of the main stage while keeping the links to original assets.
Clarisse 可以将包含在选定上下文和子上下文中的场景导出为 USD 文件。 要将上下文导出为 USD,请转到 File > Export > Context As USD... 根据您选择的模式,生成的 USD 可以是独立的(在这种情况下,所有外部文件依赖项都嵌入在输出文件中)或导出 作为主舞台的替代,同时保持与原始资产的链接。
Options选项 |
Description描述 |
Filename 文件名 |
USD output file. USD输出文件。 |
Default Prim 默认 Prim |
Define the USD root prim mode becomes the new parent of all unparented items in the exported scene. When select None, no root prim is created. This mode is only useful if you want to bring the USD as a main stage. If you select Create, the exporter creates a new root prim with the name specified by Root Prim Name. When selecting Use Existing the item selected by Root Prim attribute becomes the root prim of the USD. 定义 USD 根 prim 模式成为导出场景中所有非父项的新父项。选择“无”时,不会创建根本原理。此模式仅在您想将美元作为主要舞台时才有用。如果您选择创建,导出器将创建一个新的根 prim,其名称由 Root Prim Name 指定。选择使用时,root prim属性选择的项目成为USD的根本。 |
Root Prim Name 根 Prim 名称 |
Define the name of the root prim when Default Prim is set to Create. 当 Default Prim 设置为 Create 时,定义根 prim 的名称。 |
Root Prim 根Prim |
Define the root prim item when Default Prim is set to Choose Existing. 当 Default Prim 设置为 Choose Existing 时定义根 prim 项目。 |
Standalone 独立 |
Enable/Disable the export as a standalone self-contained USD file. When enabled, Clarisse bakes all external dependencies so that the output USD is self contained. When disabled, Clarisse tries to keep as much as possible links to original assets so that the work done in Clarisse is exported as overrides in the main stage. 启用/禁用导出为独立的自包含 USD 文件。启用后,Clarisse 会烘焙所有外部依赖项,以便输出 USD 是自包含的。禁用时,Clarisse 会尝试尽可能多地保留与原始资产的链接,以便将在 Clarisse 中完成的工作作为覆盖导出到主阶段。 |
Use Instances 使用实例 |
Enable/Disable the conversion of duplicated items as instances. If enabled, duplicated items are automatically encapsulated within an "instanceable" xform instance. When disabled items are exported as simple references (default). 启用/禁用将重复项转换为实例。如果启用,重复项会自动封装在“可实例化”xform 实例中。当禁用项目导出为简单引用时(默认)。 |
Export Hidden Items 导出隐藏物品 |
Enable/Disable the export of hidden items. By default, hidden items are not exported, by checking Export Hidden Items, Clarisse forces the export of hidden items but also flag their visibility property accordingly in the USD file. 启用/禁用隐藏项目的导出。默认情况下,隐藏项目不会导出,通过选中导出隐藏项目,Clarisse 会强制导出隐藏项目,但也会在 USD 文件中相应地标记它们的可见性属性。 |
Export Displacements 导出置换 |
Enable/Disable the export of render displacements as geometry. Warning this can lead to export massive files. 启用/禁用将渲染置换导出为几何体。 警告这可能会导致导出大量文件。 |
It is possible to export a single frame or an entire animation using the Animation Mode attribute.
可以使用动画模式属性导出单个帧或整个动画。
Mode模式 |
Description描述 |
Current Frame 当前帧 |
Export the current frame. 导出当前帧。 |
Current Range 当前范围 |
Export the current frame range defined by the application timeline. 导出应用时间线定义的当前帧范围。 |
Custom Frame 自定义帧 |
Export the specified frame. 导出指定的帧。 |
Custom Range 自定义范围 |
Export the specified frame range. 导出指定的帧范围。 |
While the exported USD file is visually identical to the scene created in Clarisse, the USD hierarchy structure of the output file is not guaranteed to match the one in Clarisse. Indeed, since the USD hierarchy description is a subset of Clarisse one, the exporter may need to generate a new hierarchy that is compatible with USD to ensure the output is identical and as efficient as possible.
虽然导出的 USD 文件在视觉上与 Clarisse 中创建的场景相同,但不能保证输出文件的 USD 层次结构与 Clarisse 中的相匹配。实际上,由于 USD 层次结构描述是 Clarisse one 的子集,因此出口商可能需要生成与 USD 兼容的新层次结构,以确保输出相同且尽可能高效。
It is possible to export a selection of geometries, including scatterers and combiners as a Wavefront OBJ file using the File > Export > Geometry.
可以使用 File > Export > Geometry 将选定的几何图形(包括散射体和组合器)导出为 Wavefront OBJ 文件。
Wavefront OBJ is far to be the best format to export assets so it is highly recommended to use Alembic instead. The Wavefront OBJ exporter is very basic and only supports the export polygonal geometries. It doesn't export any material information.
Wavefront OBJ 远不是导出资产的最佳格式,因此强烈建议使用 Alembic。 Wavefront OBJ 导出器非常基础,仅支持导出多边形几何体。它不导出任何材料信息。
Unlike traditional applications Clarisse doesn't save a monolithic file which includes everything in it. Instead, Clarisse keeps as much as possible data as external references. Despite all the benefit resulting from this approach, this can still raise some issues when it comes to share a project or when using an online render farm service for example. Indeed, this task can be very time consuming and prone to human errors as to export a self contained version of his project a user must:
与传统应用程序不同,Clarisse 不会保存包含所有内容的单一文件。相反,Clarisse 保留尽可能多的数据作为外部参考。尽管这种方法带来了所有好处,但在共享项目或使用在线渲染农场服务时,这仍然会引发一些问题。事实上,这个任务可能非常耗时并且容易出现人为错误,因为要导出用户必须的项目的自包含版本:
Fortunately, Clarisse comes with a Python script which bundles automatically a project along with its dependencies in a ZIP archive. To export the current project as a ZIP archive, go to the General tab of the main application shelf toolbar and click on:
幸运的是,Clarisse 附带了一个 Python 脚本,该脚本自动将项目及其依赖项捆绑在 ZIP 存档中。要将当前项目导出为 ZIP 存档,请转到主应用程序架工具栏的常规选项卡,然后单击:
The script will resolve automatically, sequences of images, objects, UDIM and UVTILES images. Just set the Filename and press Ok to export the current project and its dependencies as a single ZIP archive.
该脚本将自动解析图像序列、对象、UDIM 和 UVTILES 图像。 只需设置文件名并按确定即可将当前项目及其依赖项导出为单个 ZIP 存档。
Option选项 |
Description描述 |
Filename 文件名 |
Set the output ZIP archive file. 设置输出 ZIP 存档文件。 |
Sequence Mode 序列模式 |
Defines the behavior of the script when exporting file dependencies that are sequences (such as image sequences). 定义在导出作为序列(例如图像序列)的文件依赖项时脚本的行为。 |
Custom First Frame 自定义第一帧 |
Set the first frame when Sequence Mode is set to Custom Frame Range 当序列模式设置为自定义帧范围时设置第一帧 |
Custom Last Frame 自定义最后一帧 |
Set the last frame when Sequence Mode is set to Custom Frame Range 当序列模式设置为自定义帧范围时设置最后一帧 |
Depending on your needs, you might want to export file dependencies relative to a specific frame range. Sequence Mode controls the behavior of the script when it has to export file dependencies detected as sequences.
根据您的需要,您可能希望导出与特定帧范围相关的文件依赖项。 序列模式控制脚本在必须导出检测为序列的文件依赖项时的行为。
Mode模式 |
Description描述 |
Use Timeline 使用时间线 |
Use the frame range defined by the application timeline. 使用应用程序时间线定义的帧范围。 |
Get All Files 获取所有文件 |
Whatever the sequence length all files will be exported to the archive. 无论序列长度如何,所有文件都将导出到存档。 |
Current Frame 当前帧 |
Only files relative to the current frame (set in the timeline) are exported to the archive. 只有与当前帧相关的文件(在时间轴中设置)才会导出到存档。 |
Custom Frame Range 自定义帧范围 |
Use a custom frame range define by Custom First Frame and Custom Last Frame. 使用自定义第一帧和自定义最后一帧定义的自定义帧范围。 |