Hi I cannot find anywhere for hiding and unhiding object event. Similar to how RhinoDoc.AddRhinoObject or RhinoDoc.DeleteRhinoObject works
I wanted to do something like this. If we detect user hiding object, → do something
Hi I cannot find anywhere for hiding and unhiding object event. Similar to how RhinoDoc.AddRhinoObject or RhinoDoc.DeleteRhinoObject works
I wanted to do something like this. If we detect user hiding object, → do something
RhinoDoc.ModifyObjectAttributes should fire when visibility changes for a RhinoObject.
private void OnAttributeChange(object sender, RhinoModifyObjectAttributesEventArgs args)
{
if (args.OldAttributes.Visible != args.NewAttributes.Visible)
{
// ... Your logic here
}
}
– cs