ScriptSpot

Forum topic · General Scripting

save array (to maxfile) for later use

By le1setreter · 2009-07-26

Description

hi all,

sorry if this question might be very simple but i am not able to find helpfull information via search, google or the maxscript reference...

so i want to save/keep certain arrays that have been produced for later use. so even if the maxfile has been closed and reopened i want to look for a certain array to get old settings and change them.

i think i can produce a .txt file for example, save the info/seetings into it and read it out later but i want to avoid creating additional files. is it possible to save my array somewhere into the maxfile itself, or maybe to a special (helper) object?

many thanks in advance!

 

 

 

Comments (4)

le1setreter · 2009-07-27

marco, sadly my script is nearly finished, but i will have a look at these variables. thank you very much.

Marco Brunetta · 2009-07-26

You should also check persistent global variables. They are just like regular variables but they are stored directly in the max file, and can be retrieved later.

le1setreter · 2009-07-26

thats what i have been looking for. works great. thank you, anubis.

Anubis · 2009-07-26

Search in the reference for Node User-Defined Properties and Methods
(the most easy way to do)