Attribute(bpy_struct)

base class — bpy_struct

subclasses — BoolAttribute, ByteColorAttribute, Float2Attribute, FloatAttribute, FloatColorAttribute, FloatVectorAttribute, IntAttribute, StringAttribute

class bpy.types.Attribute(bpy_struct)

Geometry attribute

data_type

Type of data stored in attribute

  • FLOAT Float, Floating-point value.

  • INT Integer, 32-bit integer.

  • FLOAT_VECTOR Vector, 3D vector with floating-point values.

  • FLOAT_COLOR Color, RGBA color with floating-point precisions.

  • BYTE_COLOR Byte Color, RGBA color with 8-bit precision.

  • STRING String, Text string.

  • BOOLEAN Boolean, True or false.

  • FLOAT2 2D Vector, 2D vector with floating-point values.

Type

enum in [‘FLOAT’, ‘INT’, ‘FLOAT_VECTOR’, ‘FLOAT_COLOR’, ‘BYTE_COLOR’, ‘STRING’, ‘BOOLEAN’, ‘FLOAT2’], default ‘FLOAT’, (readonly)

domain

Domain of the Attribute

  • POINT Point, Attribute on point.

  • EDGE Edge, Attribute on mesh edge.

  • FACE Face, Attribute on mesh faces.

  • CORNER Face Corner, Attribute on mesh face corner.

  • CURVE Curve, Attribute on hair curve.

Type

enum in [‘POINT’, ‘EDGE’, ‘FACE’, ‘CORNER’, ‘CURVE’], default ‘POINT’, (readonly)

name

Name of the Attribute

Type

string, default “”, (never None)

classmethod bl_rna_get_subclass(id, default=None)
Parameters

id (string) – The RNA type identifier.

Returns

The RNA type or default when not found.

Return type

bpy.types.Struct subclass

classmethod bl_rna_get_subclass_py(id, default=None)
Parameters

id (string) – The RNA type identifier.

Returns

The class or default when not found.

Return type

type

Inherited Properties

Inherited Functions

References