[Closed] XML + long array writing
Hi,
My problem is a bit stupid, I need to save an array of vertex index in an XML file.
Everything is running fine but the data written is like:
<ResultObject_Vert_Array=”#(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 33, 34, 35, 36, …)” >
and not
<ResultObject_Vert_Array=”#(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 33, 34, 35, 36, 37,40,41,42,43,44,45,46,48,49,52,120,121,122,158)” >
Which is making me errors when I want to use that data back.
To write into my XML I use this , where Mesh_Obj_Array is the array containing my vertex index :
OBJ.setAttribute “Object_Vert_Array” ( Mesh_Obj_Array as string)
To read it I’ve no problem I’m using execute (XML function to read data ) to get properly my array back.
I’m trying to figure out how it change the way MS write in XML to find a way to force him to wrtie everthing.
If anyone have an idea , Thanks
PS : I’m scrolling through the dotNet + MXS thread searching for info about it, so sorry in case of duplicate. Just let me know I’ll delete this thread.
If there was some maxscript FAQ, this would be among the top ten answers, you have to do it with printAllElements on, like this:
with printAllElements on print (#{1..100} as array) #noMap
SwordSlayer thanks, I was pretty sure this question was silly but I was searching around with dotNet … not MXS display system.
Not saying it’s silly, actually it would really be a good fit for the maxscript reference FAQ section, it’s quite hard to find without knowing what you are looking for and sooner or later almost everyone stumbles over it.
Well yeah indeed, I was searching on an other side basicly.
Thank you again swordslayer and gandhics !