def _move_animationslider_callback(self, event=None):
    'Scroll through interpolated states. Computes states if key-frames changed'
    self.animationsliderWidget.synchronise()
    new_frame = self.animationsliderWidget.value()
    self.animation._set_viewer_state(self.animationsliderWidget.interpol_states[new_frame])
    new_key_frame = (self.animationsliderWidget.cumulative_frame_count > new_frame).argmax()
    new_key_frame -= 1
    new_key_frame = int(new_key_frame)
    self.keyframesListWidget.setCurrentRowBlockingSignals(new_key_frame)
    self.animation.frame = new_key_frame
Scroll through interpolated states. Computes states if key-frames changed
def _move_animationslider_callback(self, event=None):
    
    self.animationsliderWidget.synchronise()
    new_frame = self.animationsliderWidget.value()
    self.animation._set_viewer_state(self.animationsliderWidget.interpol_states[new_frame])
    new_key_frame = (self.animationsliderWidget.cumulative_frame_count > new_frame).argmax()
    new_key_frame -= 1
    new_key_frame = int(new_key_frame)
    self.keyframesListWidget.setCurrentRowBlockingSignals(new_key_frame)
    self.animation.frame = new_key_frame