I’m writing a custom python 3 script in grasshopper to write and export a csv file when clicking on a Button object (attached “exportCSV.gh” file). Sometimes (for example, after reconnecting a wire on the Py3 block), using this script by clicking the button causes Grasshopper to freeze, and it becomes impossible to move objects in the interface. Do you know if there is a way to improve my GH file and/or my python script in order to avoid this problem ? exportCSV.gh (4.1 KB)
I’m using Rhino 8 and Grasshopper Build 1.0.0008 (version Tuesday, 10 Decembre 2024).
I’ve sometimes had a button get “stuck down” causing the downstream components to re-run at each solution step. If that’s what’s happening here, then this is my solution. It’s a small python script that sits between the button and whatever it controls and immediately turns itself off after passing on the button signal.
Thanks for your answer. Unfortunately, even with this additional component, the freeze is still here… However, thanks for this python script: it could be very helpfull for other situations, I will keep it.