sb.getValue(key[, key2, ...])

Get the value of a variable from the data manager. A nil is returned for any values that do not match a key in the data manager.

    key         The key whose value should be extracted from the data manager.

    The value associated with the data manager entry for the key, or null if no entry exists. If multiple keys are specified, 
    then multiple return values will be generated matching the argument order.

function getControlWidth(context) {    
    // This will extract the width of the control 'my_control' on the layer 'my_layer'    
    var value = sb.getValue("my_layer.my_control.grd_width");    
    print("The width of the control is " + value.toString(10));
Was this article helpful?
0 out of 0 found this helpful