sb.redraw

sb.redraw(x, y, width, height, [channel])

Force a screen redraw. channel is an optional parameter. Specifying a x,y,width,height of 0 will result in a full screen refresh occurring.

Parameters:
    x             The x position of the redraw bounding box event
    y             The y position of the redraw bounding box event
    width         The width position of the redraw bounding box event
    height        The height position of the redraw bounding box event
    channel       An optional Storyboard IO channel to send the event on, if not specified the event is added directly into the current Storyboard application event 
                  queue if neither the environment variable or global GREIONAME variable are set.

Returns:
    true for success, false for failure and error message string, e.g. "Can't open greio channel my_channel"
Example:

function CBRedraw() {    
    sb.redraw(25, 50, 100, 100)
}

function CBSendRedraw() {
    var success, error = sb.redraw(25, 50, 100, 100, "my_channel");    
    if(success == false){        
        print(error)    
     }
}
Was this article helpful?
0 out of 0 found this helpful