Here is sample code. It will give first click value and keeps on giving same 
again so i am unable to know drag direction.

contx = "valueDrag"

def onDrag ():
    x = cmds.dragferContext(contx, q=True, ap=True)
    print x


if cmds.draggerContext(contx, q=True, ex=True):
    cmd.deleteUI(contx)
cmd.draggerContext(contx, dc=onDrag, cur="tumble")
cmds.setToolTo(contx)
____________
Result will be like on mouse drag
All anchor point will come same it give only first point of click.

(2,45,0)
(2,45,0)
(2,45,0)
(2,45,0)

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/bfde6c2b-0208-4d7b-b766-6a307fa386b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to