Setting the frame rate in Maya

38 views
Skip to first unread message

Ravi Jagannadhan

unread,
Jul 31, 2019, 2:52:42 PM7/31/19
to python_in...@googlegroups.com
Hi all, I'm sure I'm missing something simple here, but I can't seem to set the frame rate in Maya. It's doable via the prefs and in the main window UI at the bottom right, but I can't seem to find a command/script way of doing it. Any ideas?

Thank you for your time,
Ravi
--
Where we have strong emotions, we're liable to fool ourselves - Carl Sagan

Jesse Kielman

unread,
Jul 31, 2019, 2:54:50 PM7/31/19
to Python Programming for Autodesk Maya
I think you may be looking for the playbackOptions command.

Ravi Jagannadhan

unread,
Jul 31, 2019, 3:02:48 PM7/31/19
to python_in...@googlegroups.com
Hi Jesse, thank you for your response. In a vanilla Maya scene, when I try (in MEL, but please bear with me):

playbackOptions -q -fps; // returns 0

likewise querying playbackspeed or even maxplaybackspeed. The docs aren't entirely clear what exactly the value being returned is supposed to be....

Thank you for your time,
Ravi
On Wed, Jul 31, 2019 at 11:54 AM Jesse Kielman <jessek...@gmail.com> wrote:
I think you may be looking for the playbackOptions command.

--
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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/e954c07e-cf60-45ea-b732-69a7bdba723a%40googlegroups.com.

Juan Cristóbal Quesada

unread,
Aug 1, 2019, 2:47:10 AM8/1/19
to python_in...@googlegroups.com
Hi Ravi,
for querying the fps in maya you can use the following maya command:

maya.cmds.currentUnit(q=True, time=True)

this will return a string code for the format as it is in prefs. For setting it you only need to use the edit flag.

Hope it helps.


Ravi Jagannadhan

unread,
Aug 1, 2019, 11:12:25 AM8/1/19
to python_in...@googlegroups.com
As they say in German, “Gracias!!”

"There are no dumb questions" - Carl Sagan.
Reply all
Reply to author
Forward
0 new messages