Value > MAXWrapper > Controllers > Time Functions |
Returns a time Interval value specifying the range of time covered by keys in the controller. The optional symbolic arguments specify options:
# selOnly : return the time range covered by the currently selected keys (in the track view)
# allKeys (default): the time range for all keys in the controller
# children : descends into sub-controllers and returns the total time interval covering all keys in all sub-controllers
Sets the time range to be an interval other than that covered by existing keys, typically to influence when the out-of-range methods take over. If the optional #linkToKeys argument is given any keys exactly at the start or end of the given interval become anchors for the time range and moving them move the time range for the controller.
If you call setTimeRange() with just the single argument, #linkToKeys , it will set the time range to the current start and end keysin all the controllers affected,
This is equivalent to the Recouple Ranges function in the Position Ranges mode in Track View.
returns true or false depending on whether the controller supports the following time operations
Deletes an interval of time from the controller, removing all the keys with that interval and, by default, sliding the keys to the right of the interval to the left by the width of the interval. The optional symbolic arguments choose one of several options:
# incLeft : includes any key exactly at the start time of the interval
# incRight : includes any key exactly at the end time of the interval
# noSlide : doesn’t slide the later keys to fill in the gap removed- this effectively just deletes any keys in the interval.
The <interval> argument can be specified as an Interval value or as two numbers or time values defining the start and end times. Number values are taken as frame numbers.
Reverses time in the given interval, essentially swapping keys around so that their time placements are reversed within the interval. The notes on inclusion and interval arguments from deleteTime() apply.
Scales the times of the keys within the given interval. Again, the <interval> argument can be specified as an Interval value or as two numbers or time values defining the start and end times. Number values are taken as frame counts.
Inserts a block of time at the specified time, effectively moving all later keys out in time by the amount inserted. The times can be numbers or Time values. Numbers are taken as frame counts.
The following script shows example usages of some of the above methods.