Attribute (属性)ノード
Attribute (属性)ノードによってオブジェクトやメッシュに付与された属性値を取得する事ができます。
入力
このノードには入力は有りません。
Properties(プロパティ)
- Name(名前)
Name of the attribute.
- Type(タイプ)
Specifies the type of the attribute.
- Geometry(ジオメトリ)
The attribute is associated with the geometry of the object, and its value varies from vertex to vertex, or within the volume of the object.
Most geometry attributes are directly accessible through the various input nodes, except for these:
- Ocean Foam (オーシャンモディファイアの泡)
Gives a scalar defining where foam might appear when using an Ocean Modifier. This depends on the name you give this property.
参考
For a full list of options see This Thread on the Blender Stack Exchange.
- Object(オブジェクト)
The attribute name specifies a custom property name, or an RNA path to a built-in property (like the single property driver variables).
The values of attributes of this type are defined once per object. The name or path is looked up first in the object data-block, followed by the mesh data-block if not found. Custom properties have priority over built-in ones.
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.
ちなみに
The
color
attribute will output the value of the Color field in the Viewport Display panel of the object, unless overridden by a custom property.- Instancer
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.
警告
Currently only up to 4 layers of Geometry Node instancing are searched.
- View Layer(ビューレイヤー)
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.
ちなみに
This gives access to a number of useful built-in properties, for example:
color
orworld.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.
出力
- Color(カラー)
指定した属性から補間される RGB 色情報が返されます。
- Vector(ベクトル)
指定した属性から補間される XYZ の 3 次元ベクトルが返されます。
- Factor(係数)
指定した属性から補間されるスカラ値が返されます。
- Alpha(アルファ)
Alpha channel of the attribute, when available. If the attribute has no alpha channel, generally defaults to 1.
警告
Currently, only View Layer attributes are supported in shaders used for the World or Light Objects.