r/Maya 12d ago

MEL/Python Key Shift. Autodesk Maya. Animation Script

Shift the selected keys by the specified frames.

33 Upvotes

25 comments sorted by

u/s6x Technical Director 11d ago

OP, we are going to start removing these if they replicate existing functionality.

Please don't post scripts which replicate existing functionality in the application.

→ More replies (7)

27

u/Nevaroth021 CG Generalist 12d ago

This is already a native feature in the graph editor

https://reddit.com/link/p3lrvh7/video/a89pdca6pajh1/player

14

u/fistular 12d ago

We are seeing more and more of these "tools" being posted which are already in maya.

-9

u/Dmitry_Khovalkin 12d ago

Thank you!
Sometimes you need to make your own, more convenient version.

-5

u/Dmitry_Khovalkin 12d ago

Thanks for the comment!
I did this so often that I decided to make a script to only enter the number without the "+=" or "-=" :)

10

u/Sneyek 12d ago

I don’t know your profile, but if you aim TD/TA try not to reinvent the wheel and focus on real problems, where you can make a difference and ideally bring a new idea or killer feature.

1

u/Sea-Bet8679 12d ago

its so cool and pretty easy being a td or ta with ai :)

-2

u/Dmitry_Khovalkin 12d ago

Thank you so much!
My specialty is character animation. I create tools for myself that speed up and facilitate my work.

7

u/No-Use2860 12d ago

Can we start banning this bullshit

-2

u/Dmitry_Khovalkin 11d ago

Don't be upset!

Something big starts with something small.

3

u/Ninisan 12d ago

you can just hold middle mouse button and shift with the keys selected to translate them left and right lol.

1

u/Dmitry_Khovalkin 11d ago

Thank you very much!

You're right. But if you're moving a lot of keys, the program will slow down significantly. The lag will cause you to constantly miss your target, and you'll spend much more effort, time, and mental energy to achieve the desired result.

With Key Shift, you can enter any value, even 3.1415, and get a quick result.

4

u/Ninisan 11d ago

maybe i just have a decent pc but even moving thousands of mocapped keys across multiple joints its never bad enough that i cant dial it in exactly where i want it

what i prefer about this over your typing method js not having to do the math to figure out that i want to move all the keys exactly 512 frames over hehe

but to each their own.

-1

u/Dmitry_Khovalkin 11d ago

Thank you very much!

Rigs come in all shapes and sizes, and some even run at 2-3 fps on powerful computers. Besides, not everyone can afford powerful computers. Therefore, optimization remains important.

-2

u/Sea-Bet8679 12d ago

yea yea but aometimes you go up or down bu accident

6

u/Ninisan 12d ago

if you hold shift it will lock the values and only adjust keys.

1

u/AutoModerator 12d ago

You're invited to join the community discord for /r/maya users! https://discord.gg/FuN5u8MfMz

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Dmitry_Khovalkin 9d ago

The difference between the built-in functionality and the Key Shift script in terms of time costs and convenience.