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 Tools Display Modes
  02 February 2009
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
  02 February 2009
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.

"The Evil Monkey hiding in your closet."
  02 February 2009
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
  02 February 2009
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
  02 February 2009
That is exactly what i did.
This sentence is false
  02 February 2009
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
Society of Digital Artists

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

All times are GMT. The time now is 03:39 AM.

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