属性

    Note

    属性数据类型和域在可能的情况下被隐式转换,就像节点套接字一样。

    Named attributes are created and used in other areas of Blender like shaders, painting, and UV mapping. In the , a named attribute can be used for input by clicking the icon to the right of the value button. The string input input allows you to search and choose existing attributes from the modifier’s input geometry.

    属性查找。

    属性搜索为每个属性提供了一些上下文。菜单左侧显示属性域,然后显示属性名称。菜单右侧显示属性数据类型。

    匿名属性

    ../../_images/modeling_geometry-nodes_attribute-reference_attribute-field.png

    法线旋转 输出是属性字段的示例,它们指的是存储在几何体上的属性。

    匿名属性是存储在没有名称的几何体上的一组通用数据。通常,在Blender界面中公开的属性都有名称。然而,在几何节点中,属性可以通过节点套接字传递。在这些情况下,将创建 属性字段 输出,节点使用该输出查找输入几何体中的属性数据。

    Anonymous attributes are still stored on the geometry like other attributes, and they are even automatically interpolated when the geometry changes with other nodes, except for a few cases. So generally, if the node link is still accessible, the attribute it references will be available too. However, anonymous attributes cannot be connected to a completely separate geometry that was created from a different source. To transfer attributes between separate geometries, the or other similar nodes like the Sample Nearest Surface Node can be used.

    属性的类型是指存储在每个元素的数据种类。

    上面的列表是按照最不复杂到最 “复杂” 的顺序排列的(一个整数可以比布尔值包含更多的数据,所以它更复杂)。当把独立的几何体连接在一起时,当有匹配的名称时,更复杂的数据类型是首选。当用 节点 ‣ 并入新框 连接具有命名属性的几何体时,这一点特别重要。

    To store 2D Vectors (UV maps) and Byte Colors the must be used because there are no sockets for those types.

    属性域

    一个属性的域指的是该属性对应的几何元素的类型。知道一个属性的域是很重要的,因为它定义了它如何在节点和阴影中插值和使用。你可以使用 来确定属性的域。

    • 属性与空间中的单个位置相关联,有一个位置。

      • 网格的顶点

      • 曲线控制点

    • 边缘 域属性是与网格的边缘相关的。

    • 域属性是与网格的面相关的。

    • 面拐角 域属性是与网格的面角相关的。一个例子是UV贴图属性。

    • 样条 域属性与一组相连的曲线控制点相关。

    Attributes are automatically interpolated to other domains. For example, when the 位置节点 is connected to the selection input of the node, the values are interpolated from the Point domain to the Face domain. Normally, domain conversions use simple averages for values, but Boolean data type attributes have special rules for interpolation:

    内置属性始终存在,无法删除。无法更改其数据类型和域。

    Naming Conventions 命名习惯

    默认情况下不存在这些属性,但Blender的某些部分隐含使用这些属性。这些属性的数据类型可以更改,就像内置属性之外的任何属性一样。但是, Blender可能期望这些属性具有某种类型。

    顶点组、UV贴图和颜色属性可用作几何节点中的属性。他们被称为他们的名字。应避免命名碰撞(例如,具有相同名称的顶点组和UV地图)。如果存在命名冲突,则在几何节点中只能访问其中一个属性。

    首次使用名称时,节点也可以创建具有任何其他名称的属性。

    请注意,如果使用像 加入几何学 这样的节点,几何节点并不总是产生例如顶点组。同样,如果顶点组属性的数据类型从最初的 “Float “类型改变,该属性将不再是一个顶点组。

    属性转换运算符

    在属性编辑器的 属性 面板中找到的此运算符可以更改属性的域或数据类型。

    Due to ongoing development in the area of attributes, many areas of Blender can not yet work with the generic (identified with a name, stored on any domain with any data type) attributes used by geometry nodes. That makes this operator an essential workaround in some cases where existing tools must be used with data generated from geometry nodes.

    模式

    • 泛型:

      插入并转换此页面上描述的域和数据类型之间的属性。

      顶点组:

      更多信息见 顶点组

    Note