Notifications
Clear all

[Closed] Access persisten global mxs variable from sdk

So,
I’m writing on my exporter.
The GUI and all that are in maxscript, the actual export is in c++.

Now in my script I define my animated objects by adding them to a
persistent global variable (maxscript).
The reason for that is that it makes it very easy to work with in my maxscript gui’s etc.

So, my question now is how can I access the persistent global variable from c++?

I either have to do it this way, or simply store it somewhere else (in my objects properties for example).

2 Replies

look at …max SDK\maxsdk\samples\maxscript\mxsagni\mxs_variables.cpp

Thank you for the pointer, I will give that a look