ScriptSpot

Forum topic · Scripts Wanted

Save Array With In the Scene

By MKlejnowski · 2010-01-25

Description

What I'm looking for is a way to be able to store an array with in the scene so that when max is closed and the scene is reopened the array will be loaded as well. I'm familiar with weak referencing and using the paramater block to store nodes but what I really want to do is store multiple arrays with in an array. A friend mentioned using the #stringTab with in the paramater but I'm a little confused on how I would add the array to it.

I would like to make a pose store tool on a rig which will load all its saved poses with in the scene with out having to reload the information. Any and all help will be appreciated.

Comments (3)

My tips

Anubis · 2010-01-25

I would not recommend you persistent global variables, nor custom attributes. If you really need to store them in the scene, you can use "User-Defined Properties" (see in help - getUserPropBuffer() , setUserPropBuffer() , ... ), but I personally find it safer to dump them in an external file.

This works Perfect

MKlejnowski · 2010-01-27

Thank you. This works perfect for what I have in mind.

Marco Brunetta · 2010-01-25

Look for persistent global variables in the maxscript reference