OnUnload request

To David and the Grasshopper Development Team,

A small request that could be helpful to some. It would be nice to have a way to trigger a method upon unloading or closing grasshopper.

For example, a way to trigger a function that might do something on exiting grasshopper - for instance - have a function that would cause a window appear that could be used to do something like trigger a save process for data created in a custom plugin or alternatively destruct something, a display instance for example - you can imagine.

Just a thought.

  • up

    David Rutten

    Grasshopper never really closes after it starts. Even the GrasshopperUnloadPlugin command only goes so far. You could add an eventhandler to the grasshopper main window (probably visiblechanged will work, I'm on an ipad now and cannot test). Also Rhino has events for when it shuts down.
    13