Geometry Operators
- bpy.ops.geometry.attribute_add(name='Attribute', domain='POINT', data_type='FLOAT')
Add attribute to geometry
- Parameters
name (string, (optional, never None)) – Name, Name of new attribute
domain (enum in ['POINT', 'EDGE', 'FACE', 'CORNER', 'CURVE', 'INSTANCE'], (optional)) –
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.
data_type (enum in ['FLOAT', 'INT', 'FLOAT_VECTOR', 'FLOAT_COLOR', 'BYTE_COLOR', 'STRING', 'BOOLEAN', 'FLOAT2'], (optional)) –
Data Type, Type of data stored in attribute
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.
- bpy.ops.geometry.attribute_remove()
Remove attribute from geometry