After finding a few scripts that have a magical way to do things faster 
(magical because I don't understand it yet), I'm going to dissect their 
methods. Fortunately the tools are available for free :)

The one that works great is aTools by Alan Camilo. His tool moves keyframes 
in the graph editor using an interactive slider, and it works beautifully 
with a lot of data.

I really like the idea of controlling my own Undo's, especially if it'll 
give me more control. That's where I don't know how to proceed, so it 
sounds like tutorial season is on.

I will be looking into OM through these tutorials:
https://www.cgcircuit.com/course/introduction-to-the-maya-api
https://www.cgcircuit.com/tutorial/maya-python-api

Simon, do you know where else I should look to get into OM?

Thank you again!

Isai

On Thursday, October 19, 2017 at 2:22:18 PM UTC-7, Simon Anderson wrote:
>
> 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/9b2b5142-8f33-4826-b219-f175263713a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to