Add a new or update an existing hair particle system on the surface object
Enter/Exit sculpt mode for curves
Move curves so that the first point is exactly on the surface mesh
attach_mode (enum in ['NEAREST', 'DEFORM'], (optional)) –
Attach Mode, How to find the point on the surface to attach to
NEARESTNearest – Find the closest point on the surface for the root point of every curve and move the root there.
DEFORMDeform – 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.