Skip to content
Shapemetry

Model - Table functions

Every function callable as Table.* inside an expression — an argument input, a parameter binding, a table cell. Pure: no side effects, no async.

FunctionReturnsDescriptionArgTypeMeaning
Table.cell(key, index, column)numberOne cell, or null when the row or column is missing.keystringa tables[] chain key
indexnumber0-based row index
columnstringcolumn name
Table.column(key, column)objectOne column's values, in row order.keystringa tables[] chain key
columnstringcolumn name
Table.count(key)numberRow count of a table.keystringa tables[] chain key
Table.find(key, predicate)objectThe first matching row, or null. Table.find('parts', { sku: 'A-1' }) is the lookup idiom.keystringa tables[] chain key
predicatefunction | objectrow => boolean, or a { column: value } match object
Table.get(key)objectThe whole resolved table — { columns, rows }. Wired in root/scene expressions and a sheet's flat operations. NOT in a texture chain's parameters or a component body — both are isolated functions of their own args (see RUNTIME_CONTEXTS).keystringa tables[] chain key
Table.row(key, index)objectOne row by index, or null when out of range.keystringa tables[] chain key
indexnumber0-based row index
Table.rows(key)objectJust the rows of a table — an array of plain objects keyed by column name.keystringa tables[] chain key
Last updated: 📖 1 min readEdit on GitHub