PDA

View Full Version : saving arrays in max scene


luigi
05-04-2006, 03:36 PM
I wil like to keep arrays in my max scene. I have a maxscript tool that work in arrays and everytime you restart max i lost my arrays so i have to redo it to continue working.

i already done a save and load option to a ini file. But i will like to dont remenber to save the arrays before exit the maxscene.

It will be great if could be posible to save the array in maxscene without having to store the arrays in and object.is this posible?

and if is not posible how you storage arrays in and object , you do in his porperties or .....
How you do it?

both options should be great store in and object or in the scene.

Any help will be apreciated.

arketip
05-04-2006, 03:51 PM
Yes, that exists.
Look in reference : "Persistent Global Variables"

luigi
05-04-2006, 04:32 PM
thanks a lot it work and made my life much easier .

working perfectly :)

sometimes is hard to find thinks on the maxscript help. :)

arcburn
05-04-2006, 09:09 PM
on the subject of arrays and maxhelp. I remember there is a way to get the listener to list the entire contents of an array. normally it tops out at about 20 items and leaves #(item20....) how do you get the full array?

marktsang
05-04-2006, 09:15 PM
withprintallelements on (insert your code here e.g. print superlongarray)

mark

arcburn
05-04-2006, 09:23 PM
great!!! thanks!!!

cyberluigi2k
05-07-2006, 02:14 PM
if you want to keep saving things to a file but you want it automated you can use presave/postload callbacks to get your data saved/loaded every time your save/load a scene...


/Lui

Prog
05-12-2006, 07:45 PM
if you use the #filepreopen callback be careful.
Loading render presets will call this and make things funky.
Someone showed me the callbacks.notificationParam() to determine
if a file is really being opened etc or if something else is being done that triggers
the #filepreopen, hence loading render presets.

CGTalk Moderation
05-12-2006, 07:45 PM
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.