draggerContext? interesting... mind to tell me more?

my initial idea was to detect when a user navigate the camera viewport
with Alt + LeftDrag
I wish to read the camera information ( as in location, rotation...)
when the user is navigating.



On Jul 11, 7:45 am, chadrik <[email protected]> wrote:
> also, keep in mind that maya provides many context commands in  
> maya.cmds, such as draggerContext, so you don't necessarily need to  
> use the API.
>
> -chad
>
> On Jul 10, 2009, at 10:08 AM, Paul Molodowitch wrote:
>
>
>
> > It's a little complicated, as you have to create a plugin to use any
> > of the MPx* classes, which is a bit of a pain.  If you don't have much
> > experience writing plugins, check out
> >http://download.autodesk.com/us/maya/2009help/index.html?url=Maya_API...
> > for a basic intro, or
> >http://download.autodesk.com/us/maya/2009help/API/index.htmlfor a
> > basic python example.  You can compare that to
> >http://download.autodesk.com/us/maya/2009help/API/sine_node_8cpp-exam...
> > to get a feel for translating between C++ and python, and then check
> > out some of the C++ examples that use MPxContexts / MEvents, like
> >http://download.autodesk.com/us/maya/2009help/API/component_scale_man...
>
> > As a word of warning before you start that journey, though, it may not
> > be possible to do what you want - my understanding of MPxContexts
> > isn't the greatest, but I believe they're only active when a
> > custom-made tool is in use.  So if you want to somehow trigger custom
> > code to run WHENEVER the user does certain mouse events, regardless of
> > what tool they're using, I don't think that's possible.
>
> > I'd love to hear I'm wrong - Ravi in this post -
> >http://groups.google.com/group/python_inside_maya/browse_thread/threa...
> > - implies that it's possible to register for mouse move messages - but
> > he may have just been referring to when a custom tool is active.
>
> > - Paul
>
>
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---

Reply via email to