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.delete()

Remove selected control points or curves

bpy.ops.curves.sculptmode_toggle()

Enter/Exit sculpt mode for curves

bpy.ops.curves.select_all(action='TOGGLE')

(De)select all control points

Parameters

action (enum in ['TOGGLE', 'SELECT', 'DESELECT', 'INVERT'], (optional)) –

Action, Selection action to execute

  • TOGGLE Toggle – Toggle selection for all elements.

  • SELECT Select – Select all elements.

  • DESELECT Deselect – Deselect all elements.

  • INVERT Invert – Invert selection of all elements.

bpy.ops.curves.select_end(end_points=True, amount=1)

Select end points of curves

Parameters
  • end_points (boolean, (optional)) – End Points, Select points at the end of the curve as opposed to the beginning

  • amount (int in [0, inf], (optional)) – Amount, Number of points to select

bpy.ops.curves.select_linked()

Select all points in curves with any point selection

bpy.ops.curves.select_random(seed=0, probability=0.5)

Randomizes existing selection or create new random selection

Parameters
  • seed (int in [-inf, inf], (optional)) – Seed, Source of randomness

  • probability (float in [0, 1], (optional)) – Probability, Chance of every point or curve being included in the selection

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