AttributeGroup(bpy_struct)
base class — bpy_struct
- class bpy.types.AttributeGroup(bpy_struct)
Group of geometry attributes
- active_color_index
Active color attribute index
- Type
int in [-inf, inf], default 0
- active_index
Active attribute index
- Type
int in [-inf, inf], default 0
- render_color_index
The index of the color attribute used as a fallback for rendering
- Type
int in [-inf, inf], default 0
- new(name, type, domain)
Add attribute to geometry
- Parameters
name (string, (never None)) – Name, Name of geometry attribute
type (enum in ['FLOAT', 'INT', 'FLOAT_VECTOR', 'FLOAT_COLOR', 'BYTE_COLOR', 'STRING', 'BOOLEAN', 'FLOAT2', 'INT8']) –
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 32-bit floating-point values.BYTE_COLOR
Byte Color – RGBA color with 8-bit positive integer values.STRING
String – Text string.BOOLEAN
Boolean – True or false.FLOAT2
2D Vector – 2D vector with floating-point values.INT8
8-Bit Integer – Smaller integer with a range from -128 to 127.
domain (enum in ['POINT', 'EDGE', 'FACE', 'CORNER', 'CURVE', 'INSTANCE']) –
Domain, Type of element that attribute is stored on
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
Spline – Attribute on spline.INSTANCE
Instance – Attribute on instance.
- Returns
New geometry attribute
- Return type
- remove(attribute)
Remove attribute from geometry
- 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