sb.getGroupAttrs
sb.getGroupAttrs(groupName, tags ...)
Get properties for a group. Key name is the name of the group or a variable. Tags can be a list of the following values:
x, y, hidden
A JS object with the results is returned.
Parameters
| Parameter | Type | Description |
|---|---|---|
groupName | string | The model full path of the group to get information about. |
tags | string | One or more tags as strings. |
Returns
| Type | Description |
|---|---|
object | An object containing the tags as keys with the associated table value being the Storyboard value associated with that tag. |
Example
function checkIfHidden() {
// check if my_group is currently hidden
var dk_data = sb.getGroupAttrs("my_layer.my_group", "hidden");
if (dk_data.hidden == 1) {
print("my_control is currently hidden");
} else {
print("my_control is currently visible");
}
}