sb.getTableCellAttrs
sb.getTableCellAttrs(tableName, row, col, tags ...)
Get properties for a table cell. table_name is the name of the table. Tags can be a list of the following values:
x, y, width, height, hidden
An object with the results is returned.
Parameters
| Parameter | Type | Description |
|---|---|---|
tableName | string | The model full path of the table to get information about. |
row | number | The row of the table to get information on. |
col | number | The column of the table to get information on. |
tags | string | One or more tags as strings. |
Returns
| Type | Description |
|---|---|
object | An object containing the tags as keys with the associated object value being the Storyboard value associated with that tag. |
Example
function checkIfHidden() {
// check if my_control is currently hidden
var dk_data = sb.getTableCellAttrs("my_table", 1, 1, "hidden");
if (dk_data.hidden == 1) {
print("cell 1.1 of my_table is currently hidden");
} else {
print("cell 1.1 of my_table is currently visible");
}
}