Last active
August 12, 2024 12:09
-
-
Save gansaibow/c30b93bd80dd9a0396d926c31832c4f7 to your computer and use it in GitHub Desktop.
Revisions
-
gansaibow revised this gist
Apr 5, 2016 . No changes.There are no files selected for viewing
-
gansaibow revised this gist
Apr 5, 2016 . 2 changed files with 8 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ cmds.currentUnit( time=unit ) fps = mel.eval('currentTimeUnitToFPS') print fps This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ ## 参照 [[mel] fspを調べたりしてみる](http://sproutmel.blogspot.jp/2012/07/mel-fsp.html) [fps設定。](http://junkithejunkie.cocolog-nifty.com/blog/2014/06/fps-5f5c.html) -
gansaibow created this gist
Apr 5, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,35 @@ import maya.cmds import maya.mel as mel def SetFPS(fps): unit = 'ntscf' 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') print fps SetFPS(15) SetFPS(24) SetFPS(25) SetFPS(30) SetFPS(48) SetFPS(50) SetFPS(60) SetFPS(250) This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ import maya.cmds import maya.mel as mel fps = mel.eval('currentTimeUnitToFPS') print fps This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ import maya.cmds import maya.mel as mel import maya.cmds import maya.mel as mel cmds.currentUnit( time='ntsc' ) fps = mel.eval('currentTimeUnitToFPS') print fps # 30.0 cmds.currentUnit( time='250fps' ) fps = mel.eval('currentTimeUnitToFPS') print fps # 250.0