getView

returns a view object by its name. If no name is specified, returns the current view

object getView( [string name] );
namestringoptional, the name of the view
objecta view object

Example

var timeline = scheduler.getView(); 
timeline.x_size = 8;
scheduler.setCurrentView();

Related samples

Details

Returns only views that have their own object representation. Currently, these are timeline and units views, so the method will return null for any other view.

See also
Back to top