algorithmic modeling for Rhino
is it possible for grasshopper to raise a delete event when a user deletes a component?
I need to intitaite some code when my custom component is deleted by the user. Has anyone successfully done this? I have a an event handler I want to remove when the user deletes the component,
cheers
Tags:
There's an ObjectsDeleted event on GH_Document you can handle. There's also 4 functions on IGH_DocumentObject that might be useful, though these were added very recently and I'm not sure they're in the latest build already.
AddedToDocument(document)
RemovedFromDocument(document)
MovedBetweenDocuments(oldDocument, newDocument)
DocumentContextChanged(document, context)
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by