How to print all elements?
I wanna output an array to a stringStream. Here's my Script:
a = #()
for i = 1 to 30 do append a i
b = #()
append b a
append b a
c = stringStream ""
with printAllElements on (print b to:c #noMap)
-- result:
StringStream:"#(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30)
#(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30)
"
And it seems the #noMap option has no effect.I hope to get this result:
-- result:
StringStream:"#(#(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30),#(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30))"
How to get the result I want?
Comments
replace this: with
replace this: with printAllElements on (print b to:c #noMap)
with: c = b as string
my recent MAXScripts RSS (archive here)
Have you tried it ? It seems
Have you tried it ?
It seems not work.
yes, I tried it and works :)
yes, I tried it and works :)
my recent MAXScripts RSS (archive here)