I’m trying to register some Python functions to the
Rhino.RhinoDoc event handlers, eg:
import Rhino import rhinoscriptsyntax as rs def deselect_test(a, b): print "hello" Rhino.RhinoDoc.DeselectAllObjects += deselect_test def select_test(sender, e): print "hello select" Rhino.RhinoDoc.SelectObjects += select_test
I’ve tried the above with both the
RunPythonScript inline format and with a separate script, but neither function ever appears to fire when selecting and deselecting points and curves.
Are the BoundEvent interfaces available to Python scripts? If so how does one make use of them?