检视

检查几何节点树中的中间值对于构建/理解中间值或尝试找出某些东西不起作用的原因非常有用。Blender提供多种工具来了解节点树的工作原理或无法工作的原因。

Note

通常,检查工具显示上次评估节点树时的数据。如果尚未对其进行评估,则无法获得任何信息。

插槽检视

../../_images/modeling_geometry-nodes_inspection_socket-inspection.png

插槽检视。

套接字检查显示有关上次评估期间套接字中的值的信息。对于原始数据类型,如整数、向量和字符串,显示实际值。对于几何套接字,仅存储有关几何的一些数据,包括几何所包含的数据类型集及其元素的计数。

仅在执行节点树时才记录套接字值,因此节点必须连接到 组输出 才能具有检查值。在渲染过程中不记录值,以提高性能。

查看器节点

The Viewer node is used to display intermediate geometry in the Spreadsheet Editor and the Viewport. For more information see 查看器节点.

节点警告

../../_images/modeling_geometry-nodes_inspection_node-warning.png

节点警告。

当节点的输入无效时,它会在标题中显示警告。将鼠标悬停在警告图标上会显示错误消息。这些警告仅在执行节点时生成,因此必须将节点连接到 组输出 才能发出警告。

节点定时叠加

../../_images/modeling_geometry-nodes_inspection_node-timings.png

节点定时叠加。

节点定时显示一个节点执行上次评估节点组的时间。它们可以在节点编辑器右上角的叠加弹出窗口中打开。当节点组在多个位置使用时,时间取决于节点编辑器的上下文,该上下文显示在左上角的路径中。

帧节点显示所有包含节点的总时间, 组输出 节点显示整个节点组的总时间。

显示的时序应该只被认为是一个近似值,因为它们也可以考虑到像复制或删除一个几何体输入的动作,而这些动作并不是节点操作的一部分。另外,当一个节点使用多个CPU核心时,评估系统可能同时在其他节点上工作。同样重要的是要记住 域节点 一般不自己做工作,所以它们的执行时间只加到它们所连接的数据流节点上。

已命名属性

The "Named Attributes" overlay allows displaying when a custom named attribute is used by a node or a node group. Named attributes can be used by the 捕捉属性, the 已命名属性, and the 删除已命名属性, and can be written to, read, or removed.

当原始几何体已经具有指定名称的属性时,使用命名属性(而不是 匿名属性 )可能会有问题。在这种情况下,几何节点组可能会错误地覆盖一些基本数据。覆盖层有助于轻松检测这种情况。

在修改器的UI中的 更新依赖 面板中也可获得相同的数据。

几何随机化

Many nodes don't guarantee the order of elements in which they output things. For example, the order of edges coming out of the Triangulate node is deterministic but not well defined. The order may change between Blender versions. Therefor, if node setups depend on a specific order, they may break when the Blender implementation changes. Changing the order can often be necessary in order to fix bugs or improve performance.

"Geometry randomization" can be temporarily enabled to see if a .blend file depends on the indices in unstable ways. When enabled, various internal algorithms shuffle the result geometry elements so that any dependence on it would not work anymore. When building setups that are supposed to last a long time, it is recommended to check if they still work with randomization enabled.

To enable it, first enable Developer Extras in the preferences. Then search for Set Geometry Randomization. The popup allows enabling and disabling the randomization.