Interval Values

An Interval class represents an interval of time. It has two time value components, start and end. The time values can be numbers or Times, numbers being interpreted as frame counts.

Constructor

interval <start_time> <end_time>

Properties

<interval>.start : Time

 

<interval>.end : Time

Examples

t = animationRange.start + 5

orig_anim_range=animationRange -- store original animation range

animationRange=interval 0 100000 -- set real long animation range

-- assign script controller, controllers range is the current

-- animation range

ControlObj.scale.controller=scale_script()

-- assign a script to the controller

ControlObj.scale.controller.script = controlscript

-- reset animationRange back to original value

animationRange=orig_anim_range

Some of the examples above refer to system global variables. See 3ds Max System Globals for more details.