Grasshopper

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

 

Views: 422

Replies to This Discussion

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

Thank you david, the objects deleted event worked for me

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service