Zip Streams
The Zip Streams component can be used to merge several memory streams into a single one, corresponding to a zip archive. The component takes a list of streams as input, and a list of corresponding file names including extensions:
The input memory streams can be created using scripts, third-party Grasshopper plugins, or the ShapeDiver Create Stream component, which allows the creation of memory streams corresponding to various file formats.
The Zip Streams component outputs a single memory stream corresponding to a zip archive which contains the list of files specified as inputs. This resulting stream can be further processed in Grasshopper as desired. One relevant application is to send the stream to ShapeDiver Export components in order to export it as a zip archive:
Download this example definition here.