MaxScript:如何使用zip或maxzip压缩文件内容

huangapple go评论85阅读模式
英文:

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 &lt;filename&gt;archiveFile &lt;filename or filename array&gt;input

huangapple
  • 本文由 发表于 2023年7月17日 09:20:38
  • 转载请务必保留本文链接:https://go.coder-hub.com/76701022.html
  • maxscript
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定