예제 #1
0
 async def run(self) -> None:
     self.api.video.view.zoom = eval_expr(
         self.args.expression.format(self.api.video.view.zoom))
예제 #2
0
 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)),
     )
예제 #3
0
 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
예제 #4
0
 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