MaxScript: Compress On Save

For you coders out there:

What is the code for setting Compress On Save for the saving current scene only ? If possible at all.
It can be done by accessing the INI-files but this requires Max to restart, so this is not what I want.

Thanks:)

What is the difference between the one you need and the native 3ds max compress on save?

I think he wants to be able to choose when to compress on save, instead of it compressing everytime he saves, because if it does it every time it takes much longer to save and that affects the autobackup speed as well.

Cheers.

Thanks for the replies.

Thing is I need to be able to set compress on save based on certain conditions in maxscript, while for normal max use compress on save is off. As Chad said :wink:

This will switch it on for you:
setINISetting (getMAXIniFile()) "Performance" "WriteCompressed" "1"

You shouldnt need to restart max, but may need admin rights…

Hmm, tried that but didn’t work on the fly without a restart, while being admin. Will look into it and report back. Thanks :slight_smile:

Not sure this is a way to do this…