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', 'FLOAT2']) –
Type, Attribute type
FLOATFloat – Floating-point value.INTInteger – 32-bit integer.FLOAT_VECTORVector – 3D vector with floating-point values.FLOAT_COLORColor – RGBA color with floating-point values.BYTE_COLORByte Color – RGBA color with 8-bit values.STRINGString – Text string.BOOLEANBoolean – True or false.FLOAT22D Vector – 2D vector with floating-point values.
domain (enum in ['POINT', 'EDGE', 'FACE', 'CORNER', 'CURVE', 'INSTANCE']) –
Domain, Type of element that attribute is stored on
POINTPoint – Attribute on point.EDGEEdge – Attribute on mesh edge.FACEFace – Attribute on mesh faces.CORNERFace Corner – Attribute on mesh face corner.CURVESpline – Attribute on spline.INSTANCEInstance – Attribute on instance.
- 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.Structsubclass
- 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