lom_enums
Look up the integer values for named enum members in Ableton Live to correctly write enum properties.
Instructions
Look up the integer behind a named Live enum member.
Live stores an enum property as a bare integer, so a write needs the number and
a read hands back a number that means nothing on its own. This is the lookup in
both directions.
Returns:
Dictionary of member names against their integer values, or the list of enum
type names when ``type_name`` is empty.
Note:
Call this before writing an enum-valued property through lom_set or
set_parameter, rather than guessing that the members run in the order Live
draws them. This answers what a type's members are. lom_describe answers
what properties an object has, and neither answers the other.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type_name | No | Dotted Live enum name, e.g. 'Song.Quantization'. Leave empty to list the enum type names instead of the members of one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||