Repository navigation
Numeric
Conner Olsen edited this page Jun 26, 2026
·
8 revisions

You can create a numeric stepper using cmm_register_numeric_setting:
cmm_example_register_mod = {
cmm_register_numeric_setting = {
mod_id = cmm_example
setting_id = example_numeric
tab_id = general
group_id = general_values
default_value = 5 # Starting value
min_value = 0 # Minimum value
max_value = 10 # Maximum value
step_value = 1 # Step size
}
}
-
default_value- the initial value. -
min_value/max_value- the allowed range. -
step_value- how much the value changes per click. Ctrl+click changes by 5x the step, and shift+click jumps to min or max.
That's it. The numeric stepper works automatically.
To run custom logic when the value changes, see Reacting to Changes.