Beispiel #1
0
    def isPanelAnimated(self, panel):
        recipe = self.getPanelRecipe(panel)

        # if pythonHelper.parseRecipe(recipe, 'Recipe', 'hasAnimation'):
        #     return 1
        # else:
        #     return 0

        hasAnimation = int(pyUtils.parseRecipe(recipe, 'Recipe', 'hasAnimation'))

        return hasAnimation
Beispiel #2
0
    def getPanelDuration(self, panel):
        """Parses a panel's multitrack to determine its duration

        :param panel: Panel recipe name (e.g. 'flx_a_0001_v1')
        :return: int: Duration of the panel
        """
        recipe = self.getPanelRecipe(panel)

        sDuration = pyUtils.parseRecipe(recipe, 'FrameRange', 'end')

        try:
            duration = int(sDuration)
        except ValueError, e:
            log('getPanelDuration: %s\'s duration could not be converted to an integer.\n%s' % e, 'error')
            return 0