Ahoy Isai,

Nice implementations.

For Solution 1, you could add two events one for the "click" 
mousePressEvent and another for the "release" mouseReleaseEvent. That way 
when the user clicks on the slider it stores the initial position if timer 
is 0, and then when the user releases the mouse it starts the timer.

I would suggest looking into using the OM python models and creating a 
command, that way you can make it feel more native as it will be native :)

also if you write your own command you can write your own undo, which will 
save you a huge amount of head ache, as instead of trying to bash something 
to fake the native feel, you will have full control. Doing this will also 
help in your solution 2, as it is a bit dirty to use a redo as a selection. 
I would suggest using the selection comand if you are sticking with maya 
cmds, or if you try om2 then use om2.MGlobal.setActiveSelectionList()

Hope it all helps,

Cheers

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/bc7af327-1d7c-4d21-8152-67f68d3be0c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to