I will write a Max script (question)

I will write a Max script (question)

After creating one array. You will register the object in the array and control it

However, if you do this, when you quit Max, the array is deleted.

I was told there was a way to store the variable in the scene.

But I do not want to use it.

Alternatively, you can save the array as a file.

I do not want to use this it also

Can not you create an object with some data?

So it's like a dummy with information.

Even if I do not use the script, I can access the information of this dummy, and if I delete the dummy, the data will disappear completely

Is not there a good way?

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
miauu's picture

.

Create a Dummy and write all the data in its User Properties bufer, or write all data in Custom Attributes and store it in the Dummy.
When you delete the dummy all data will be deleted.

pixamoon's picture

`

Hi,

You can also use persistent global

Here is more info about it:
https://help.autodesk.com/view/3DSMAX/2016/ENU/?guid=__files_GUID_2739C3...

Best,

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.