Chapter 4 · The TnpixTool Interface
4.2Collision
| Function | Returns | What it does |
|---|---|---|
colAdd node collider | boolean | Adds 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 node | integer | How many rows the list holds. |
rows node | string | Every row and all of its settings, as text. |
colSet node index field value | boolean | Sets 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