Curves Operators

bpy.ops.curves.convert_from_particle_system()

Add a new curves object based on the current state of the particle system

bpy.ops.curves.convert_to_particle_system()

Add a new or update an existing hair particle system on the surface object

bpy.ops.curves.disable_selection()

Disable the drawing of influence of selection in sculpt mode

bpy.ops.curves.sculptmode_toggle()

Enter/Exit sculpt mode for curves

bpy.ops.curves.set_selection_domain(domain='POINT')

Change the mode used for selection masking in curves sculpt mode

Parameters

domain (enum in Attribute Curves Domain Items, (optional)) – Domain

bpy.ops.curves.snap_curves_to_surface(attach_mode='NEAREST')

Move curves so that the first point is exactly on the surface mesh

Parameters

attach_mode (enum in ['NEAREST', 'DEFORM'], (optional)) –

Attach Mode, How to find the point on the surface to attach to

  • NEAREST Nearest – Find the closest point on the surface for the root point of every curve and move the root there.

  • DEFORM Deform – Re-attach curves to a deformed surface using the existing attachment information. This only works when the topology of the surface mesh has not changed.

bpy.ops.curves.surface_set()

Use the active object as surface for selected curves objects and set it as the parent