Interval Values

An Interval class represents an interval of time.

It has two time value components: start and end.

The start and end values can be numbers or Time values (numbers are interpreted as frame counts).

Constructor

interval <start_time> <end_time> | #forever | #never

Construct a new interval value from start and end values.

NEW in 3ds Max 2024.1 Update: The #forever and #never options construct an interval with effectively an eternal time span, or with no time span, respectively.

For example:

never = interval #never
--> (interval -1.34218e+07f -1.34218e+07f)
forever = interval #forever
--> (interval -1.34218e+07f 1.34218e+07f)

Properties

<interval>.start : Time

Gets/sets the start value of the interval.

<interval>.end : Time

Gets/sets the end value of the interval.

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 MaxSystem Globals for more details.