mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
Added workscene fps collector for Maya
This commit is contained in:
parent
74e4b3b666
commit
fecf960bc8
1 changed files with 15 additions and 0 deletions
15
colorbleed/plugins/maya/publish/collect_workscene_fps.py
Normal file
15
colorbleed/plugins/maya/publish/collect_workscene_fps.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import pyblish.api
|
||||
from maya import mel
|
||||
|
||||
|
||||
class CollectWorksceneFPS(pyblish.api.ContextPlugin):
|
||||
"""Get the FPS of the work scene"""
|
||||
|
||||
label = "Workscene FPS"
|
||||
order = pyblish.api.CollectorOrder
|
||||
hosts = ["maya"]
|
||||
|
||||
def process(self, context):
|
||||
fps = mel.eval('currentTimeUnitToFPS()')
|
||||
self.log.info("Workscene FPS: %s" % fps)
|
||||
context.data.update({"fps": fps})
|
||||
Loading…
Add table
Add a link
Reference in a new issue