Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4125

Event handling - ModifyObjectAttributes triggered by AddRhinoObject

$
0
0

Hello,

I have 3 event watchers running.

class TimberEventHandler:
    def __init__(self):
        # Enable the event handlers
        Rhino.RhinoDoc.AddRhinoObject += self.OnAddRhinoObject
        Rhino.RhinoDoc.InstanceDefinitionTableEvent += self.OnBlockModify        
        #Rhino.RhinoDoc.UserStringChanged += self.OnUserStringChanged
        Rhino.RhinoDoc.ModifyObjectAttributes += self.OnModifyAtts
        self.Enabled = True

AddRhinoObject seems to also be triggering ModifyObjectAttributes. I don’t want this to be happening. What Attribute change would be causing AddRhinoObject to fire? What would be a suggested workaround to avoid doubled up events?

Thanks,

Dan

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4125