PDA

View Full Version : animate a camera with a hotkey pressed and stop the animation when its released


katisss
01-08-2009, 10:54 PM
so the idea is to animate a camera with a hotkey pressed and stop the animation when its released.
Its pretty easy to get the camera going but hard to stop the loop on key release. Maya will finish the "on press" command before ever doing the "on release" which is supoosed to stop the animation. I guess i will need threads. Anyone has experience doing something like that or hints?

EDIT: Found a good solution using scriptjobs

katisss
01-17-2009, 11:37 PM
i now use a dragger context with an idle scriptjob.
This is the same as the flycam in the level tools.
Now i want to use the right mouse button in that context for something else
than the context menu. Any way to disable it?

katisss
01-19-2009, 08:16 AM
hm, annoying: pressing the mouse blocks all hotkey events.
Not quite what i expected. Any way around it or to know the mouse position without pressing the mouse?

CGTalk Moderation
01-19-2009, 08:16 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.