MaxScript : How to compress a file content with zip or maxzip

71 Views Asked by At

I've wrote an exporter for 3Dsmax using MaxScript.

File into which content is exported to is in a binary format, not a text file.

I would like to, at the end of the export, compress binary content using zip (for example, some equivalent to php's gzencode).

Is there a way that MaxScript can natively do this?

Or if not, is there a way maxscript can call an .exe or a .bat file with parameters, in which case I could then have an external tool to do compression?

1

There are 1 best solutions below

3
Swordslayer On

Yes, there are the maz/unmaz commands (for max zip):

maz <filename>archiveFile <filename or filename array>input