MAXScript Language Reference > 3ds Max Objects > Animation Controllers > Controller Types > Float Controllers >

# float_limit : FloatController

    float_limit - superclass: FloatController; super-superclass:MAXWrapper - 6:0 - classID: #(387087934, 0)

Value > MAXWrapper > Controllers > FloatController > float_limit

| Animation Controllers - Quick Navigation

The Float_Limit controller can be used to limit the values of another controller to a user-defined value range.

It is available in 3ds Max 8 and higher.

Constructor

    float_limit... FloatLimitCtrl...

Properties:

    <float_limit>.enable BooleanClass default: true -- boolean

Enable and disable the limit controller.

    <float_limit>.lower_limit Float default: -10000.0 -- animatable; float

Get and set the lower limit of the controller.

    <float_limit>.lower_limit_enabled BooleanClass default: true -- boolean

Enable and disable the use of the lower limit.

    <float_limit>.static_value Float default: 0.0 -- float

Get and set the static value of the limit controller.

    <float_limit>.upper_limit Float default: 10000.0 -- animatable; float

Get and set the upper limit of the controller.

    <float_limit>.upper_limit_enabled BooleanClass default: true -- boolean

Enable and disable the use of the upper limit.

float_limit interfaces:

    Interface:limits

Methods:

    <bool>IsEnabled ()

Returns true if the limit controller is enabled, false otherwise.

    <void>SetEnabled <bool>enabled

Sets the enabled state of the controller to the boolean value.

    <control>GetLimitedControl ()

Returns the controller which is being limited.

    <void>SetLimitedControl <control>limitedCtrl

Sets the controller to be limited.

    <void>SetUpperLimit <time>time <(null)>value
    value is In and Out parameter

Sets the upper limit of the controller at the specified time to the given value.

    <void>SetLowerLimit <time>time <(null)>value
    value is In and Out parameter

Sets the lower limit of the controller at the specified time to the given value.