英文:
MaxScript : How to compress a file content with zip or maxzip
问题
我已经为3Dsmax使用MaxScript编写了一个导出器。
导出内容的文件是以二进制格式而不是文本文件保存的。
我想在导出结束时使用zip进行二进制内容的压缩(例如,类似于php的gzencode的功能)。
MaxScript是否可以原生支持这样做?
或者如果不行,是否有一种方式让maxscript调用一个带参数的.exe或.bat文件,这样我就可以使用外部工具来进行压缩?
英文:
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
得分: 1
是的,有maz/unmaz命令(用于max zip):
maz <filename>archiveFile <filename or filename array>input
英文:
Yes, there are the maz/unmaz commands (for max zip):
maz <filename>archiveFile <filename or filename array>input
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。


评论