def __start__(self, fade=False):
        for target_id, action in self.targets:
            cue = Application().cue_model.get(target_id)
            if cue is not self:
                cue.execute(action=CueAction[action])

        return False
    def _execute(self, action):
        for n, trigger in enumerate(self._triggers.get(action, [])):
            cue, cue_id = trigger
            if cue is None or cue.is_finalized():
                cue = Application().layout.get_cue_by_id(cue_id)
                self._triggers[action][n] = (cue, cue_id)

            if cue is not None:
                cue.execute()
    def __start__(self, fade=False):
        if self.relative:
            index = self.index + self.target_index
        else:
            index = self.target_index

        try:
            cue = Application().layout.model_adapter.item(index)
            if cue is not self:
                cue.execute(CueAction(self.action))
        except IndexError:
            pass
Example #4
0
 def execute(self, index):
     cue = Application().layout.get_cue_at(index)
     if cue is not None:
         cue.execute(emit=False)
    def __execute(self, trigger):
        for target_id, target_action in self.triggers.get(trigger, []):
            target = Application().cue_model.get(target_id)

            if target is not None:
                target.execute(CueAction(target_action))
 def __start__(self):
     for target_id, action in self.targets:
         cue = Application().cue_model.get(target_id)
         if cue is not None and cue is not self:
             cue.execute(action=CueAction[action])
    def __execute(self, trigger):
        for target_id, action in self.triggers.get(trigger, []):
            target = Application().cue_model.get(target_id)

            if target is not None:
                target.execute(CueAction(action))
Example #8
0
 def execute(self, index):
     cue = Application().layout.model_adapter.item(index)
     if cue is not None:
         cue.execute()