async def run(self) -> None: self.api.video.view.zoom = eval_expr( self.args.expression.format(self.api.video.view.zoom))
async def run(self) -> None: self.api.video.view.pan = ( eval_expr(self.args.expr_x.format(self.api.video.view.pan_x)), eval_expr(self.args.expr_y.format(self.api.video.view.pan_y)), )
async def run(self) -> None: new_value = eval_expr( self.args.expression.format(self.api.playback.playback_speed)) assert isinstance(new_value, type(self.api.playback.playback_speed)) self.api.playback.playback_speed = new_value
async def run(self) -> None: new_value = eval_expr( self.args.expression.format(self.api.playback.volume)) assert isinstance(new_value, Fraction) self.api.playback.volume = new_value