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

Parameters 5

pin_expressionstring
Default ""

Numpy 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_groupstring
Default pin

Name of the point group to write the pinned points into (solvers read 'pin' by default).

add_to_grouptoggle
Default off

Add to an existing group instead of replacing it.

set_masstoggle
Default off

Write point `mass` from surface area x density.

densityfloat
Default 0.25Range 0.00001 to …

kg/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.