Unzipping within Grasshopper

Hi,

Is there a way to get Grasshopper to unzip a folder so I don’t have to unzip manually before reading the files in?

Thx

I haven’t heard of a plug-in that can do this, but it should be feasible with scripting (Python, C#, VB).

You can use the standard Python zipfile module in GHPython:


210624_UnzipFile_GHPython_00.gh (3.7 KB)

4 Likes

@AndersDeleuran hilarious. You just need to get Windows to “unblock” first!

It works on both my personal and work laptop. Could be your UAC/admin settings.

Edit: Ahhh, sorry, you mean unblock the zip file. This powershell hack appears to work:


210624_UnzipFile_GHPython_01.gh (2.9 KB)

3 Likes

Thank you!

1 Like