Thuộc Tính

An attribute is a generic term to describe data stored per-element in a geometry data-block. For example, every vertex can have an associated number or vector. Attributes can be altered by connecting a value to the Group Output node, but also many nodes can change the values of specific attributes.

Ghi chú

Attribute data types and domains are converted implicitly where possible, just like node sockets.

Thuộc Tính -- Attributes

In the modifier, it is possible to access attributes with names, created and used in other areas of Blender like shaders, painting, and UV mapping. The attribute can be chosen with a name, and the string input allows you to search and choose existing attributes.

../../_images/modeling_geometry-nodes_attribute-reference_search.png

Thuộc Tính -- Attributes.

The attribute search gives a bit of context about each attribute. To the left of the menu, the attribute domain is shown followed by the attribute name. To the right of the menu, the attribute data type is shown.

Thuộc Tính -- Attributes

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

The Normal and Rotation outputs are examples of attribute fields, which refer to an attribute stored on a geometry.

An anonymous attribute is a set of generic data stored on a geometry that doesn't have a name. Usually, attributes exposed in Blender's interface all have names. However, in geometry nodes, attributes can be passed around with node sockets. In these cases, an Attribute Field output is created, which is used by nodes to find attribute data in an input geometry.

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 too. However, anonymous attributes cannot be connected to a completely separate geometry that was not created from their source. To transfer attributes between separate geometries, the Thêm Nút Thuộc Tính Màu Điểm Đỉnh can be used.

Thuộc Tính -- Attributes

The type of an attribute is the kind of data stored at each element.

Lôgic Bool Tự Động

True or false value

Số Nguyên

Số nguyên 32-bit

Float

Giá trị dấu phẩy động

Véctơ

Véctơ 3D trong giá trị dấu phẩy động

Màu Sắc

RGBA color with floating-point precision

The above list is in the order of least to most "complex" (An integer can contain more data than a boolean, so it is more complicated). When joining separate geometries together, the more complex data type is preferred when there are matching names. This is particularly important when joining geometry with named attributes with the Đặt Hình Học ở Trung Tâm Cảnh

Các Phạm Vi Thuộc Tính

The domain of an attribute refers to what type of geometry element the attribute corresponds to. Knowing the domain of an attribute is important because it defines how it may be interpolated and used in nodes and shading. You can use the Spreadsheet Editor to determine the domains of attributes.

  • Point domain attributes are associated with single locations in space with a position:

    • Nút Chuyển Đổi -- Converter Nodes

    • Points of a point cloud

    • Xương Điều Khiển

  • Edge domain attributes are associated with the edges of a mesh.

  • Face domain attributes are associated with the faces of a mesh.

  • Face Corner domain attributes are associated with the corners of the faces of the mesh. An example is a UV map attribute.

  • Spline domain attributes are associated with a group of connected curve control points.

Attributes are automatically interpolated to other domains. For example, when the Vị Trí -- Position is connected to the selection input of the Nguyên Liệu -- Material 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:

Interpolation -- Nội Suy

Dùng/ra khỏi/từ

Tới

Chuyển Đổi

Điểm/Chấm

Cạnh

An edge is selected if both of its vertices were selected.

Điểm/Chấm

Bề Mặt

A face is selected if all of its vertices were selected too.

Điểm/Chấm

Góc Cạnh

Each corner's value is simply a copy of the value at its vertex.

Điểm/Chấm

Đường Cong Spline

A spline is selected if all of its control points were selected.

Cạnh

Điểm/Chấm

A vertex is selected if any connected edge was selected.

Cạnh

Bề Mặt

A face is selected if all of its edges are selected

Cạnh

Góc Cạnh

A corner is selected if its two adjacent edges were selected.

Bề Mặt

Điểm/Chấm

A vertex is selected if any of the connected faces were selected.

Bề Mặt

Cạnh

An edge is selected if any connected face was selected.

Bề Mặt

Cạnh

Each corner's value is simply a copy of the value at its face.

Góc Cạnh

Điểm/Chấm

A vertex is selected if all connected face corners were selected and it is not a loose vertex.

Góc Cạnh

Cạnh

An edge is selected if all corners on adjacent faces were selected.

Góc Cạnh

Bề Mặt

A face is selected if all of its corners were selected.

Đường Cong Spline

Điểm/Chấm

Each point's value is simply a copy of the corresponding value of the spline.

Thuộc Tính -- Attributes

Built-in attributes always exist, and cannot be removed. Their data type and domain cannot be changed.

Tên

Thể Loại

Phạm vi

Một số Lưu Ý/Ghi Chú

Vị Trí

Véctơ

Điểm/Chấm

Built-in attribute describing vertex or point locations, in the local space of a geometry. Any node that changes the location of points will adjust this attribute, like the Transform and Set Position nodes.

Bán Kính

Float

Điểm/Chấm

A built-in attribute on point clouds used to set the size for the points in the viewport. Also built-in on curves, where it controls the size of each curve control point when converted to a mesh, or for other operations.

id

Số Nguyên

Điểm/Chấm

Created by the Phân bố các điểm trên bề mặt to provide stability when the shape of the input mesh changes, and used on instances to create motion blur. Values are expected to be large, with no order. This attribute is used by nodes that generate randomness, like the Random Seed -- Mầm Ngẫu Nhiên. Unlike other built-in attributes, this attribute is not required, and can be removed.

material_index

Số Nguyên

Bề Mặt

Used to specify the material slot for every face in a mesh.

Nếp Gập

Float

Cạnh

Edge attribute used by the Subdivision Surface modifier. The values are limited to a range of 0 and 1.

shade_smooth

Lôgic Bool Tự Động

Bề Mặt

Attribute determining if a face should have smooth shading enabled in the viewport or a render.

Độ Phân Giải

Số Nguyên

Đường Cong Spline

Determines the number of evaluated points between two control points of a spline. Only NURBS and Bézier splines have this attribute, for poly splines, the value is always one.

Tuần Hoàn

Lôgic Bool Tự Động

Đường Cong Spline

Determines whether the spline has a segment that connects its first and last control points.

handle_left

Véctơ

Điểm/Chấm

Describes the location of the left handle of a curve control point, on the side of the curve's start. Only exists when the curve contains a Bézier spline.

handle_right

Véctơ

Điểm/Chấm

Describes the location of the right handle of a curve control point, on the side of the curve's end. Only exists when the curve contains a Bézier spline.

Quy Ước Đặt Tên

These attributes do not exist by default, but are used implicitly by certain parts of Blender. The data type of these attributes can be changed, just like any attribute besides the built-in attributes. However, the attributes might be expected by Blender to have a certain type.

Tên

Thể Loại

Một số Lưu Ý/Ghi Chú

Tốc Lực

Véctơ

Used to create motion blur when rendering animations.

Các Thuộc Tính Tùy Chỉnh

Vertex groups, UV maps and vertex colors are available as attributes in geometry nodes. They are referred to by their name. Naming collisions (e.g. a vertex group and a UV map with the same name) should be avoided. If there is a naming collision, only one of the attributes is accessible in geometry nodes.

Attributes with any other name can also be created by nodes, when the name is used for the first time.

Note that geometry nodes does not always produce e.g. vertex groups if a node like Join Geometry is used. Similarly, if the data type of a vertex group attribute is changed from the initial "Float" type, the attribute will no longer be a vertex group.