Geometry Operators¶
-
bpy.ops.geometry.attribute_add(name='Attribute', data_type='FLOAT', domain='POINT')¶ Add attribute to geometry
- Parameters
name (string, (optional, never None)) – Name, Name of new attribute
data_type (enum in ['FLOAT', 'INT', 'FLOAT_VECTOR', 'FLOAT_COLOR', 'BYTE_COLOR', 'STRING'], (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_COLORFloat Color, RGBA color with floating point precisions.BYTE_COLORByte Color, RGBA color with 8-bit precision.STRINGString, Text string.
domain (enum in ['VERTEX', 'EDGE', 'CORNER', 'POLYGON', 'POINT', 'CURVE'], (optional)) –
Domain, Type of element that attribute is stored on
VERTEXVertex, Attribute on mesh vertex.EDGEEdge, Attribute on mesh edge.CORNERCorner, Attribute on mesh polygon corner.POLYGONPolygon, Attribute on mesh polygons.POINTPoint, Attribute on point.CURVECurve, Attribute on hair curve.
-
bpy.ops.geometry.attribute_remove()¶ Remove attribute from geometry