Add a button on/off to a script

Hi guys,

“Helvetosaur” did this wonderfull script for me :

Export_STL_By_Folder.py (2.7 KB)

I was wondering if anyone of you can help me to modify it into a grashopper python box with a button ?
because I’am creating a kind of library tool for all my company on a grasshopper file, and it’s been a while since I was asking myself, is it easy to modify a python script to make it run with a button into grasshopper…

many thanks to any help

Anthony

Try Human UI.