What event is triggered when an object in Rhino is isolated?
I’m looking for something in this formatting: private void RhinoDoc_SelectObjects(object sender, Rhino.DocObjects.RhinoObjectSelectionEventArgs e)
Hi @Lucas_NG,
I’m not sure I understand what this means. Can you explain further please?
Thanks,
– Dale
Did you mean “selected” ?
Within the realm of event handlers, which event is triggered when an object is isolated in Rhino? The previously mentioned event handler serves as a specific example of a selection event handler in Rhino.
not sure - guessing: did you check
ModifyObjectAttributes event
I think it s just the Visible property of the attributes that is changed.
do you need to know wether this was changed exactly by isoloate command - and not hide ?
There is no specific event you can subscribe to when an object, or set of objects is isolated because those objects do not change. However, their environment does, and you can conclude which objects were isolated.
Option 1
OnCommandEnd
will run after ‘Isolate’ is finished- You can iterate through the document and collect all of the visible objects (you may want to filter out locked objects here too)
Option 2
OnBeforeCommand
will run before ‘Isolate’- You can iterate through the document and collect all of the currently selected objects.
Either of these should return everything that was efectively isolated.
– cs