# Mel script for going to next or previous frame

**URL:** https://forum.highend3d.com/t/mel-script-for-going-to-next-or-previous-frame/5460
**Category:** Maya
**Tags:** mel
**Created:** [March 12, 2003, 9:01am UTC](https://forum.highend3d.com/t/mel-script-for-going-to-next-or-previous-frame/5460 "2003-03-12T09:01:50Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![trainspotting](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/t/b19c9b/32.png) [@trainspotting](https://forum.highend3d.com/u/trainspotting)
#### Post date: [March 12, 2003, 9:01am UTC](https://forum.highend3d.com/t/mel-script-for-going-to-next-or-previous-frame/5460/1 "2003-03-12T09:01:50Z")

</div>

hi, guys. i know this is really easy for you guys, but i`m really new for Maya.i`m trying to make the shortcut key for going to next or previous frame(Not drivenkey). then i noticed that i need to type the script in command area.  
i don`t know about script at all. so please help me.

---

<div class="post-metadata">

### Author: ![goggle](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/g/f14d63/32.png) [@goggle](https://forum.highend3d.com/u/goggle)
#### Post date: [March 12, 2003, 3:40pm UTC](https://forum.highend3d.com/t/mel-script-for-going-to-next-or-previous-frame/5460/2 "2003-03-12T15:40:24Z")

</div>

for Next frame:

currentTime ( `currentTime -q` + 1 )

-James

---

<div class="post-metadata">

### Author: ![markwilkins](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/m/bc8723/32.png) [@markwilkins](https://forum.highend3d.com/u/markwilkins)
#### Post date: [March 12, 2003, 5:10pm UTC](https://forum.highend3d.com/t/mel-script-for-going-to-next-or-previous-frame/5460/3 "2003-03-12T17:10:32Z")

</div>

That'll do it. Note that the quotes have to be backticks (``) rather than apostrophes (''). This catches a lot of people.

-- Mark

---

<div class="post-metadata">

### Author: ![trainspotting](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/t/b19c9b/32.png) [@trainspotting](https://forum.highend3d.com/u/trainspotting)
#### Post date: [March 13, 2003, 12:22am UTC](https://forum.highend3d.com/t/mel-script-for-going-to-next-or-previous-frame/5460/4 "2003-03-13T00:22:01Z")

</div>

thanks, man. it really helps me. see you.
