I resolved a problem I was having that I thought was caused by the inability to change parameter ranges on the fly. However, there is still a problem I am having with that.
I have some ComboBoxes that are filled with a different number of items, depending upon another parameter. That is working fine, except when loading saved session data. In that case, when I load the value for those ComboBox parameters, and try to set the parameter value for which item was selected when the session was saved, the code behind the scenes scales the parameter based on its originally defined range. But I need to scale it based on the number of items that I just added to its associated ComboBox, not the static range initially defined for the parameter.
For example, if the session data causes there to be 5 items in the ComboBox, then a value of 0.5 in the session data should be the index 2 (out of 0,1,2,3,4), but if there are only 3 items in the ComboBox now, then a value of 0.5 should result in selecting item 1 (out of 0,1,2). But I don’t see how I can do that.
If I could somehow re-define the parameter range on the fly, then I could easily set the parameter value. But with it set (to [0.0,1.0]), I can’t see how to set the parameter value such that the ComboBox selects the correct item.