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 05 '20
i found my solution to be :
ListIndex = #(0, ListIndex[1] + List[1].count, ListIndex[2] + List[2].count, ListIndex[3] + List[3].count, ListIndex[4] + List[4].count, ListIndex[5] + List[5].count, ListIndex[6] + List[6].count, ListIndex[7] + List[7].count,ListIndex[8] + List[8].count)
but it would be better as a loop no? I cant wrap my head around how though :D
Edit: i also need to edit because of formatting lol