import maya.cmds
import maya.mel as mel
def SetFPS(fps):
unit = 'film'
if fps == 15:
unit = 'game'
elif fps == 24:
unit = 'film'
elif fps == 25:
unit = 'pal'
elif fps == 30:
unit = 'ntsc'
elif fps == 48:
unit = 'show'
elif fps == 50:
unit = 'palf'
elif fps == 60:
unit = 'ntscf'
else:
unit = str(fps)+'fps'
cmds.currentUnit( time=unit )
fps = mel.eval('currentTimeUnitToFPS')
SetFPS(24)
More than 1 year has passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme