Hey there
I come into a problem: I need to smartly save things out in a variable/array with maxscript. See this screenshot:
I need to sort things out this way. All the values are going to be read from a file txt, there’s no problem about it.
The problem is to save them in an array to be easily accessible with maxscript.
Example: items = car’s brand, sub items = car’s model, sub sub items = car’s colour
See in my example I’d want to have access to the sub sub item 2-3-1 (Open Astra red), I thought I’d read something like
myArray[2][3][1]
but it doesn’t work the way I thought it would and I’m stuck here.
Note: number of items, sub items and sub sub items are variable, I don’t know the exact count.
How can organize things with that pattern? if I need to print all the colours of the Open Astra or all Porsche’s models, or all the car’s brands available, etc.
Thank you!