Cloth node
cloth_configure
Prepares a mesh for cloth_solver / soft_body: writes the pin point group from an expression on P (e.g. the top edge of a curtain) and optionally point `mass` (area-weighted, kg). Groups can also be made with the generic group nodes.
Inputs
- 0cloth
Parameters 5
pin_expressionstringNumpy expression selecting points to pin, e.g. 'P[:,1] > bbmax[1]-0.01' (top edge), '(P[:,0] < bbmin[0]+0.01) & (P[:,1] > bbmax[1]-0.01)' (one corner). Names: P, N, Cd, ptnum, npt, bbmin, bbmax, np.
pin_groupstringName of the point group to write the pinned points into (solvers read 'pin' by default).
add_to_grouptoggleAdd to an existing group instead of replacing it.
set_masstoggleWrite point `mass` from surface area x density.
densityfloatkg/m^2 used when set_mass is on.
Use it
Add it from the node menu (right-click empty graph space or Tab, then type cloth_configure), ask the AI for it by name, or add it with a graph op from the API or MCP:
{"op":"add","type":"cloth_configure","name":"my_cloth_configure","params":{},"inputs":["src"]}Any parameter can also be an expression such as "=sin(F*0.1)". See Parameters & expressions.