The issue seems to be this one as far as I understand it:
params = {
{
key = "example_item_1",
name = _("example_item_1"),
uiType = "COMBOBOX",
values = { _("0"), _("1") }
},
{
key = "example_item_2",
name = _("example_item_2"),
uiType = "SLIDER",
values = { _("0"), _("1"), _("2"), _("3"), _("4"), _("5"), _("6"), _("7"), _("8") }
},
}
updateFn = function(params)
Alles anzeigen
In params ..., You define the menu. This is static from then on. A selection will then force a run through the script and typically attach a model to the mouse pointer.
In order to get the menu flexible, You´d need variable parameters that are recalculated after a selection - and I´ll concur with what has been written before, I am unaware of a way to achieve this.
Usually, there are workarounds. Looking at Your description of what You are trying to achieve, I´d suggest catching the entries from the slider in a second step and forcing the desired settings internally. Something like this:
This can then be covered in the description: If example_item_1 is selected as 1, the slider will have no function.