XRef
XRef
Attention: 注意:
Cinema 4D now has the XRef object (new XRef system) and XRef Legacy (the old XRef system).
Cinema 4D 现在拥有 XRef 对象(新的 XRef 系统)和 XRef Legacy (旧的 XRef 系统)。
When should which XRef system be used?
什么时候应该使用哪个 XRef 系统?
The old XRef system works best with static scenes (e.g., buildings and background objects) and references to external formats. For example, if you use XRef to directly reference an obj file, it will be opened without question by the master file, while the current XRefs will open an import dialog window for each referenced external format. The old system will also load and process faster but cannot, for example, handle Sketch and Toon Materials. What the old system also does better: re-timing animations via Project Time.
旧的 XRef 系统最适用于静态场景(例如,建筑物和背景对象)和对外部格式的引用。例如,如果使用 XRef 直接引用 obj 文件,主文件将毫无疑问地打开它,而当前的 XRef 将为每个引用的外部格式打开一个导入对话框窗口。旧的系统也将加载和处理更快,但不能,例如,处理草图和图恩材质。旧系统也做得更好: 通过项目时间重新计时动画。
Note that development has been discontinued on the old XRef system.
注意,在旧的 XRef 系统上已经停止了开发。
The new XRef system also imports everything without question and can handle references and animated objects. If you want to include a character animation via XRef, you should always use the new system (which is also easier to use with its XRef options and the XRef Manager).
新的 XRef 系统还毫无疑问地导入所有内容,并且可以处理引用和动画对象。如果您希望通过 XRef 包含一个角色动画,那么您应该始终使用新系统(使用 XRef 选项和 XRef Manager 也更容易)。
All commands and managers that are located under
位于 Main 菜单下的所有命令和管理器: Create | XRefs (当然,除了 XRef (Legacy)之外) ,都被设计用于当前的新 XRef 系统。
The XRef function can be viewed as a type of instance function that works over multiple scenes: Individual Cinema 4D reference scenes can be combined into a master scene and rendered there as if all objects were part of the master scene, including materials.
功能可以被看作是一种在多个场景中工作的实例功能: 单独的Cinema 4d 参考场景可以组合成一个主场景,并在那里渲染,就好像所有对象都是主场景的一部分,包括材质。
So what is this good for?
那么这有什么好处呢?
Let’s say you are working with a very large scene that contains several complex objects. One person is responsible for placing or animating the objects and others would are creating the final models. Objects that are part of individual reference scenes can be added to the master file via XRef which lets the master scene be updated quickly and easily without having to go through a laborious merge process for each scene.
假设你正在处理一个包含几个复杂对象的非常大的场景。一个人负责放置或动画的对象和其他人将创建最终的模型。作为单个参考场景的一部分的对象可以通过 XRef 添加到主文件中,这使得主场景可以快速、方便地更新,而不必为每个场景经历费力的合并过程。
The position, scale and rotation of objects from the reference scenes will be assumed exactly when placed into the master scene. Once an object has been placed into the master scene it can be animated just like any other object. The referenced objects will behave as if they were an actual child object of the XRef object.
参考场景中物体的位置、比例和旋转将被精确地放置到主场景中。一旦一个对象已经被放置到主场景它可以被动画就像任何其他对象。被引用的对象将表现得好像它们是 XRef 对象的实际子对象。
The XRef Object’s origin will be positioned at the origin of the reference scene’s first object.
XRef 对象的原点将定位在引用场景的第一个对象的原点。
Tip: 提示:XRefs objects can be hidden using the Make Editable or Current State to Object commands. The objects from the reference scene will be grouped into Null Objects in the master scene and the materials will be assumed.
可以使用 Make Editable 或 Current State to Object 命令隐藏 xref 对象。参考场景中的物体将被分组到主场景中的空物体中,并假定材质。
XRef objects behave the same as normal objects and can also be animated in the normal fashion.
XRef 对象的行为与普通对象相同,也可以以普通方式进行动画处理。
For example, XRef objects can:
例如,XRef 对象可以:
If a reference scene that contains Scene Objects such as Floor, Environment, Background, etc., is XRefed to a master scene, the master scene will only use the first such XRef object and disregard the rest. However, it is possible to access these scene objects using a Stage Object in the master scene (see next paragraph).
如果一个包含场景对象如地板,环境,背景等的参考场景被 XRefed 到一个主场景,主场景将只使用第一个这样的 XRef 对象而忽略其余的。然而,在主场景中使用 Stage Object 访问这些场景对象是可能的(见下一段)。
You can use the XRef O tab in the object list to access objects in the master scene that are part of a reference scene (i.e. if an Align tag points to a referenced object or if a referenced object’s position should be read out or set via XPresso). See also XRef O tab.
你可以使用对象列表中的 XRef o 标签来访问主场景中的对象,这些对象是参考场景的一部分(例如 Align 标签指向参考对象,或者参考对象的位置应该通过 XPresso 读出或设置)。参见 XRef o 选项卡。
reference scenes are not aware of the master scene. A reference scene’s Expressions and tags only function within the respective reference scene.
参考场景不知道主场景。参考场景的表达式和标签只在各自的参考场景中起作用。
Example:
例子:
The Look at Camera Expression will work in the reference scene but not in a master scene into which it has been placed via XRef since the Expression will not recognize the camera in the master scene.
看相机表达式将工作在参考场景,但不是在一个主场景,它已经通过 XRef 放置,因为表达式将不承认主场景中的相机。
目录结构
XRefs work best when the master scene is located in the same directory as the reference scenes. This avoids problems (e.g., with textures) with linked files. This directory can be made available for access to the reference scene(s) across a network.
当主场景位于与参考场景相同的目录中时,xref 的工作效果最好。这避免了链接文件的问题(例如,纹理问题)。这个目录可以用于跨网络访问参考场景。
Note that executing the Save Project with Assets command in the master scene will also save all objects referenced via XRef. They will be saved on the same layer as the master scene itself.
请注意,在主场景中执行 Save Project with Assets 命令也将保存通过 XRef 引用的所有对象。他们将保存在同一层作为主场景本身。
已知的局限性