属性节点

属性节点。

属性 节点可获得物体或网格的属性信息。

输入

该节点没有输入项。

属性

名称

属性的名称。

类型

指定属性的类型。

几何数据(Geometry)

该属性与对象的几何图形相关联,其值因顶点而异,或在对象的体积内变化。

大多数几何属性都可以通过各种输入节点直接访问,但以下属性除外:

Ocean Foam(海洋泡沫)

给出一个标量定义使用 海洋修改器 时泡沫可能出现的位置。这取决于您为此属性指定的名称。

See also

想了解完整的属性名称列表,请查阅 此页面

物体

属性名称指定 自定义属性 名称,或指定内置属性的 RNA 路径(如单个属性 驱动进程变量 )。

此类型的属性值为每个对象定义一次。首先在对象数据块中查找名称或路径,如果未找到,则先查找网格数据块。自定义属性优先于内置属性。

The property value must be an integer, float, boolean, or a vector of 1 to 4 floats or ints; properties of other types are ignored. If a suitable property is not found, all sockets of the node, including Alpha, output 0.

Tip

color 属性将在对象的 视口显示 面板中输出 Color 字段的值,除非被自定义属性覆盖。

实例

Similar to Object, but the attribute is looked up in the instancer particle system settings, followed by Geometry Node instance attributes (searching from the innermost instancing layer to outer ones), and finally in the instancer object. If the current object is not instanced, or the property is not found, it falls back to the Object mode.

Warning

Currently only up to 4 layers of Geometry Node instancing are searched.

视图层

The attribute is looked up in the current View Layer, Scene and World, using the same lookup logic as Object. Attributes of this type have the same uniform value throughout the whole Render Layer.

Tip

This gives access to a number of useful built-in properties, for example:

color or world.color

Outputs the value of the Color field in the Viewport Display panel of the World properties.

render.resolution_x, render.resolution_y

Outputs the current rendering resolution.

camera.data.angle_x, camera.data.angle_y,

Outputs the effective field of view of the active Camera.

输出

颜色

指定属性的RGB颜色输出。

矢量

指定属性的XYZ矢量输出。

系数

指定属性的标量输出。

Alpha

属性的 Alpha 通道(如果可用)。如果属性没有 Alpha 通道,则通常默认为 1。

Warning

Currently, only View Layer attributes are supported in shaders used for the World or Light Objects.