Skip to content

Get Controller Value (Lisp)

Description

Get a controller's current value using the standard (get-info ... ) function.

Syntax and Default Values

The generic (get-info ... ) function can be used to obtain a controller's current value, using the following Lisp syntax:

(get-info 'value  controller_reference index)

Parameters

The (get-info 'value ... ) function requires the following two arguments to get information about an access:

  • controller_reference: the controller whose value we want to query.
  • index: desired value index (should be 0 for a 1-dimensional controller)

An example which gets the value from a one-dimensional controller:

(get-info 'value my-controller 0)


★     ★