Skip to main content
Version: 9.0.2

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

ParameterTypeDescription
groupNamestringThe model full path of the group to get information about.
tagsstringOne or more tags as strings.

Returns

TypeDescription
objectAn 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");
}
}