MPxContent and DraggerContext in Maya 2011

Hey everyone,

I’m working on a camera tool for Maya that uses the DraggerContext, it appears that the holdCommand signal never gets sent in Maya 2011, works fine in 2008. I’ve tried implementing the same tool with the API with the same results.

Has anyone here tried to do something similar? I’m curious to see if it’s something local to my box or just broken in Maya 2011.

Thanks !

I wrote a python script a while ago using a draggerContext at the core.
I went into all sort of trouble when 2011 was released.

In addition to the hold event not firing anymore, I found that my events were also re-entering while the previous event hadn’t yet finished. So you might want to look into that too if it is an issue for what you’re doing within those events.
In my case it was; I just gated the event code with a class variable and basically new events are discarded until the current event finishes. We’ll both agree it’s not the most elegant way of doing it ahah.

At the time I assumed it was part of the stuff that was broken with the release of Qt, but I have no idea if it was left as is or fixed for 2012. I try contacting autodesk about this problem, but haven’t heard back yet.