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)) – Mode

  • domain (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:
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.execute_node_group(asset_library_type='LOCAL', asset_library_identifier='', relative_asset_identifier='', name='', session_uid=0)#

Execute a node group on geometry

Parameters:
  • asset_library_type (enum in Asset Library Type Items, (optional)) – Asset Library Type

  • asset_library_identifier (string, (optional, never None)) – Asset Library Identifier

  • relative_asset_identifier (string, (optional, never None)) – Relative Asset Identifier

  • name (string, (optional, never None)) – Name, Name of the data-block to use by the operator

  • session_uid (int in [-inf, inf], (optional)) – Session UID, Session UID of the data-block to use by the operator

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