AttributeGroup(bpy_struct)¶
base class — bpy_struct
-
class
bpy.types.
AttributeGroup
(bpy_struct)¶ Group of geometry attributes
-
active_index
¶ - Type
int in [-inf, inf], default 0
-
new
(name, type, domain)¶ Add an attribute
- Parameters
name (string, (never None)) – Attribute name
type (enum in ['FLOAT', 'INT', 'FLOAT_VECTOR', 'FLOAT_COLOR', 'BYTE_COLOR', 'STRING', 'BOOLEAN']) –
Type, Attribute type
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.
domain (enum in ['POINT', 'EDGE', 'CORNER', 'POLYGON', 'CURVE']) –
Domain, Type of element that attribute is stored on
POINT
Point, Attribute on point.EDGE
Edge, Attribute on mesh edge.CORNER
Corner, Attribute on mesh polygon corner.POLYGON
Polygon, Attribute on mesh polygons.CURVE
Curve, Attribute on hair curve.
- Returns
New geometry attribute
- Return type
-
remove
(attribute)¶ Remove an attribute
- Parameters
attribute (
Attribute
, (never None)) – Geometry Attribute
-
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