Calling a variable with another variable
Im wondering if there is an easier way to go through my UI variables instead of doing it one at a time. For example, I have 40 text boxes and I named the boxes by increasing number, text1, text2 ... text39, text40. Instead of writing out 40 lines of code to get the information in every text box, I was hoping to do something like
for f=1 to 40 do (
append textArray textf.text
Ive tried ("text" + f as string) as object
That didnt work. Is this even possible in maxscript or am I stuck working with a very long script?