Dumb Problem Maya 2016 - Set Playback Speed

Has anyone had problems setting playback speed to realtime?
Following the docs, it should be something like:


cmds.playbackOptions(ps=30.0, mps=30.0)

]

Sadly, no matter what language…no matter what number I enter… Maya sets the value to 900fps.

wtf?

So those values aren’t actually the fps value, they are a multiplier from your current time unit.

So if you’re in NTCS(30fps), and you want to clamp you’re playback speed to 30fps, but enable play every frame you’d use the following.


cmds.playbackOptions(playbackSpeed=0.0, maxPlaybackSpeed=1.0)

Also, the documentation on this is awful.

Alright, re-reading the documentation:

The maxPlaybackSpeed will clamp the maximum playback rate…” - I guess that makes more sense now that you explained it. We are losing our preference settings in maya 2016 more than normal and I guess I’ve never really needed/wanted to set these in code. I also wonder why you set these and the framerate in different areas?

Ah well, thanks for you help!