Interfaces > Core Interfaces > msZip |
The msZip Core Interface provides methods to handle zip packages using MAXScript.
<boolean>msZip.fileInPackage <filename>fileName <&string>extractDir extractDir is In and Out parameter
This method will unload and run a zip package and return the extract_dir. Returns true if the zip package was run, otherwise false .
<filename>fileName: The file name of the ZIP script package.
<&string>extractDir: The directory in which the files were extracted.
<boolean>msZip.unloadPackage <filename> fileName <&string>extractDir <&string>dropFile extractDir is In and Out parameter dropFile is In and Out parameter
This method will unload the package while ignoring any drop or run commands and return the extract_dir and any primary drop file. If the primary dropFile is a *.ds, compile it in context of the package and return the MacroEntry in dropScript. Returns true if the package was unloaded, otherwise false .
<filename>fileName: The file name of the ZIP script package.
<&string>extractDir: The directory in which the files were extracted.