sb.setGroupAttrs

sb.setGroupAttrs(groupName, tagObject)

Set properties for a group. The groupName is the name of the group or a variable. The tagObject contains the tags and values for the properties to set.

x

y

hidden

Parameters:
    groupName         The model full path of the group to change properties on
    tagObject         An object with tags as the keys and the new values stored as the object's key values
Examples:

function set_control_hidden() {    
    var dk_data = {hidden: 1};      
    sb.setControlAttrs("my_layer.my_group", dk_data);
}
Was this article helpful?
0 out of 0 found this helpful