Chapter 4 · The TnpixTool Interface

4.2Collision

FunctionReturnsWhat it does
colAdd node colliderbooleanAdds a collider row, the Pick Object button's own path. Refuses an object already in the list, an object that is not a mesh, and an object that carries this Collision modifier (a cloth is never its own collider).
colCount nodeintegerHow many rows the list holds.
rows nodestringEvery row and all of its settings, as text.
colSet node index field valuebooleanSets one setting of one row. index is the row as printed by rows; field is a number from Appendix A. Values outside a setting's range are clamped to it.
TnpixTool.colAdd $Shirt $Body
TnpixTool.colSet $Shirt 0 5 0.2      -- row 0, field 5 (Thickness) = 0.2
TnpixTool.colSet $Shirt 0 6 0.5      -- row 0, field 6 (Friction)  = 0.5
TnpixTool.rows $Shirt