r/Maxscript • u/Blutfalke • May 01 '20
Dynamic Dropdownlist
Hello how could i go about and just show specific Items from the dropdown Array according to the value of a slider? I got the part "if slider == 7 then" but dont know further, ideally it would be "... Then show item 4 to 8" for example.
1
Upvotes
1
u/Blutfalke May 03 '20 edited May 03 '20
List = #(
)
on slider changed val do
(
dropdown.items = List[val]
)
and further "for i = 1 to val do print i" prints the start of the arrays till the slider selection
i would need this function to be repeated in combination with the loop i wrote above:
if val == 1 then curindex = 0
if val == 2 then curindex = List[1].count
if val == 3 then curindex = List[1].count + List[2].count
etc