Skip to content

collect_workscene_fps

CollectWorksceneFPS

Bases: HoudiniContextPlugin

Get the FPS of the work scene.

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

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

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