Cannot access MouseCallBackEventArgs in GHPython

Hello - I cannot access the MouseCallbackEventArgs in GHPython but in RhinoPython it works perfectly fine. Any suggestions?

from Rhino.UI import *
import scriptcontext as sc
import Rhino.RhinoDoc as rhdoc

class MyMouseCallback(MouseCallback):
  def OnMouseDown(self, e):
    print "active viewport: {0}".format(e.View.ActiveViewport.Name)
    self.Enabled = False
sc.doc = rhdoc.ActiveDoc
m_mc = MyMouseCallback()
m_mc.Enabled = True

Hi Jose

Please do not cross-post. The question is answered here.


Giulio Piacentino
for Robert McNeel & Associates