getUserPropBuffer and array question

getUserPropBuffer and array question

stigatle
Enthusiast Enthusiast
524 Views
1 Reply
Message 1 of 2

getUserPropBuffer and array question

stigatle
Enthusiast
Enthusiast
I've got a question about the userproperties.
I'm exporting my objects, and I need each line in the userproperties buffer to be exporter.
the problem is that my current code outputs each character in the line as one item.
the user properties is this:


LastPose = undefined
MyTest = asdfasdf
integertest = 123
floattest = 234.999



My code:


test = #()
test = getUserPropBuffer $
for i = 1 to test.count do
(
print test
)


when I run this code, I get the following



"L"
"a"
"s"
"t"
"P"
"o"
"s"
"e"
" "
"="
" "
"u"
"n"
"d"
"e"
"f"
"i"
"n"
"e"
"d"
.... etc


how can I make it so that it outputs each line as one item in the array?

thanks in advance.
0 Likes
525 Views
1 Reply
Reply (1)
Message 2 of 2

stigatle
Enthusiast
Enthusiast
got a answer which worked.

view here:
http://forums.cgsociety.org/showthread.php?f=98&t=1004304
0 Likes