Notifications
Clear all

[Closed] Array Limited to XXX Members ?

Hi,

Here is my problem :

I have to format an array to a filestream …

but the array contains A LOT of members … so much that what gets formated in the file is :

exemple : #(1,2,3,4,5,6[900 more members],901,902…)

I get the “…” at the end, wich is not the complete array

Is there a way to boost the limit or will I have to divide up the arrays ?

4 Replies

Try instead going through each individual item of the array and formatting it back out as an array in the filestream.

This will return a similar thing to what you are mentioning when evaluated in the listener.

for x = 1 to 999 collect x

I think something like this might do what you’re looking for.

test = "" as stringstream
format "#(" to:test
for x = 1 to 999 do format "%," x to:test
format ")" to:test
print test
1 Reply
(@ericdlegare)
Joined: 11 months ago

Posts: 0

Yeah, that is what I am currently doing, but it’s not enough since my main array containts hundreds of strcuts wich all contains about 30 arrays wich can contain up to 500 members each

So I want to avoid this dividing if possible since I will have to divide my structs too o.O

Thanks anyway

Alternatively, you can switch the formatting to output the complete array:

with printAllElements true do

or permanently using

[b][b]options.printAllElements = true

[/b][/b]See “PrintAllElements Variable and Context” in the MAXScript Reference.

Ahhh Bobo, where would the world be without you ? :bowdown:

Thanks for your time ! :wavey: