PDA

View Full Version : Array with more then 20 variables.


mir-vadim
12-02-2008, 05:24 PM
Hi.

I have some problem with formating array with more then 20 variables.

a = #(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22)
format (a as string)
returns:
#(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, ...)OK

I remember that there is one function which allow to increase this limit, but I don't remember which one and where to find this fuction in MaxScript reference.

Any ideas?

galagast
12-02-2008, 05:42 PM
could this be the function you're looking for?

options.printAllElements

Bobo
12-02-2008, 05:51 PM
Hi.

I have some problem with formating array with more then 20 variables.

a = #(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22)
format (a as string)
returns:
#(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, ...)OK

I remember that there is one function which allow to increase this limit, but I don't remember which one and where to find this fuction in MaxScript reference.

Any ideas?

There are two things - a context and an option. The documentation of the CONTEXT has a bug in the current version of the help - it does NOT require a DO to work.

So the signature is

with printAllElements <bool> <expr>

or in other words,

with printAllElements ON (format "%\n" a)

mir-vadim
12-02-2008, 05:59 PM
Thanks Galagast and Bobo. :)
This is exactly what I tried to find.

CGTalk Moderation
12-02-2008, 05:59 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.