Long arrays display truncated

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 02 February 2009   #1
Long arrays display truncated

Hi all,

Here is my problem.

I'm creating an array (typically objects as array) whose then I write the contents into the user defined property window. The Problem is that the display of this array is truncated after a certain amount of characters so that it ends like this #(value1, value2, value3, ...)

The goal is to store some arrays of objects to be displayed in the user defined properties of the cameras in the scene.

Of course if I access the array by calling its name, i get its full values.

I then create a user defined property which stores this array.

The problem is that I need to write the content of the property in a XML file. How can I bypass this limitation ? I thought about storing the array's name instead of its values like :

theUserDefinedProperty = theArrayName

but I'm not so sure...

EDIT : I would like to store the variable's name instead of its value, how to do it ?
__________________
This sentence is false
 
Old 02 February 2009   #2
Look up options.PrintAllElements.

NOTE: it is only truncated when printed to the listerner. All the data is there and can be accessed using normal array methods.

-Eric
__________________
"The Evil Monkey hiding in your closet."
 
Old 02 February 2009   #3
Great ! That is exactly what I needed. I know that the variable is not truncated, only its display, but it is just what i needed. Thanks !
__________________
This sentence is false
 
Old 02 February 2009   #4
As was mentioned in this previous thread, you can use the context
with printAllElements on
(
	format "Array: %\n" myArray 
)
- Enrico
__________________
IllusionCatalyst Instrument set for 3ds Max │ AliquaForma Personal portfolio in fieri
 
Old 02 February 2009   #5
That is exactly what i did.
__________________
This sentence is false
 
Old 02 February 2009   #6
Thread automatically closed

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.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 11:01 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.