Geometry Operators
- bpy.ops.geometry.attribute_add(*, name='', domain='POINT', data_type='FLOAT')
Add attribute to geometry
- Parameters:
name (string, (optional, never None)) – Name, Name of new attribute
domain (enum in Attribute Domain Items, (optional)) – Domain, Type of element that attribute is stored on
data_type (enum in Attribute Type Items, (optional)) – Data Type, Type of data stored in attribute
- bpy.ops.geometry.attribute_convert(*, mode='GENERIC', domain='POINT', data_type='FLOAT')
Change how the attribute is stored
- Parameters:
mode (enum in [
'GENERIC','VERTEX_GROUP'], (optional)) – Modedomain (enum in Attribute Domain Items, (optional)) – Domain, Which geometry element to move the attribute to
data_type (enum in Attribute Type Items, (optional)) – Data Type
- bpy.ops.geometry.attribute_remove()
Remove attribute from geometry
- bpy.ops.geometry.color_attribute_add(*, name='', domain='POINT', data_type='FLOAT_COLOR', color=(0.0, 0.0, 0.0, 1.0))
Add color attribute to geometry
- Parameters:
name (string, (optional, never None)) – Name, Name of new color attribute
domain (enum in Color Attribute Domain Items, (optional)) – Domain, Type of element that attribute is stored on
data_type (enum in Color Attribute Type Items, (optional)) – Data Type, Type of data stored in attribute
color (float array of 4 items in [0, inf], (optional)) – Color, Default fill color
- bpy.ops.geometry.color_attribute_convert(*, domain='POINT', data_type='FLOAT_COLOR')
Change how the color attribute is stored
- Parameters:
domain (enum in Color Attribute Domain Items, (optional)) – Domain, Type of element that attribute is stored on
data_type (enum in Color Attribute Type Items, (optional)) – Data Type, Type of data stored in attribute
- bpy.ops.geometry.color_attribute_duplicate()
Duplicate color attribute
- bpy.ops.geometry.color_attribute_remove()
Remove color attribute from geometry
- bpy.ops.geometry.color_attribute_render_set(*, name='Color')
Set default color attribute used for rendering
- Parameters:
name (string, (optional, never None)) – Name, Name of color attribute
- bpy.ops.geometry.geometry_randomization(*, value=False)
Toggle geometry randomization for debugging purposes
- Parameters:
value (boolean, (optional)) – Value, Randomize the order of geometry elements (e.g. vertices or edges) after some operations where there are no guarantees about the order. This avoids accidentally depending on something that may change in the future