PDA

View Full Version : capture key


Subscream
06-24-2003, 11:19 AM
Hi

Is there a way of capturing say the "up-arrow-key" in Maya?

regards Joel

Levitateme
06-24-2003, 01:04 PM
what do you mean capture it? what do you want to do with it?

Nicool
06-24-2003, 01:35 PM
In macromedia flash actionScript it would be :

on (press "upArrow") {
event...;
}

Subscream
06-24-2003, 02:00 PM
that's exactly what I want to do .. but how to do it with Mel ..

is there a proc or command .. or is it just impossible .. ?

regards Joel

ceql
06-24-2003, 02:16 PM
Hmm have you tried going into the Hotkey editor and assigning your script to the "Up" button?

Subscream
06-24-2003, 02:29 PM
nope .. that was one way though ... hmm ..

The thing is .. I'm working on a car-setup .. with all constraint and
scripts to make it work ... but then I hade another idea.
instead of just animating the movement of the car why not make it controlable through the keyboard ..

this (until recently) I thought was a simple task of just finding the
right command and through a little coding connect your keyboard to your carmodel. ( it's simple in any other scripting language ) But mel it seems dosen't support this .. or am I wrong?

regards Joel

arangel
06-24-2003, 02:37 PM
You can easily record the MOUSE position through a script. That can drive a locator´s position and by expressions or driven keys drive your setup then.
This way you can hit play and control the animation through the mouse.

Another way would be exporting your scene as Shockwave 3D and then you can map the key´s functions through Macromedia Director.
You can do this with AW Shockwave Exporter or, better yet, AW Maya RTA (Real Time Author)

Alexandre Rangel
www.mayazine.com.br

Subscream
06-24-2003, 02:45 PM
that sound like an interesting idea..

what is the commad for that so I can read more about it?

arangel
06-24-2003, 03:05 PM
For the real time mouse movement capture I use the sds_mousinCapture script, by S. D. Serbos. You can find it on High End 3D Animation Scripts.

Rangel

Subscream
06-24-2003, 03:10 PM
thanks alot ..

Then if you could capture the mouse movement it shouldn't be that hard to capture the keyboard ..

hmm .. I shall look into this more .. maybe one could add the
commands using the API ..

/Joel

lazlow69
11-19-2004, 08:43 PM
Again I find myself following a very interesting discussion, but the link to sds_mousinCapture plugin or script doesn't connect in highend3d.com... Any other ways of doing this: live keyboard capture or live mouse motion capture? Is this built into Maya 6 and I'm just not seeing it?

Would be great fun to have this be a possibility!

CGTalk Moderation
01-15-2006, 11:00 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.