Skip to content

collect_workscene_fps

CollectWorksceneFPS

Bases: MayaContextPlugin

Get the FPS of the work scene

Source code in client/ayon_maya/plugins/publish/collect_workscene_fps.py
 6
 7
 8
 9
10
11
12
13
14
15
class CollectWorksceneFPS(plugin.MayaContextPlugin):
    """Get the FPS of the work scene"""

    label = "Workscene FPS"
    order = pyblish.api.CollectorOrder

    def process(self, context):
        fps = mel.eval('currentTimeUnitToFPS()')
        self.log.info("Workscene FPS: %s" % fps)
        context.data.update({"fps": fps})