From 6a1dc95e29faffad8aecd161a5beb7de9cd123d0 Mon Sep 17 00:00:00 2001 From: Cyril Lepinette Date: Fri, 15 Nov 2019 21:25:46 +0100 Subject: [PATCH] Added a function to create a scene (LiveOsc need to be updated too) --- live/set.py | 4 ++++ 1 file changed, 4 insertions(+) mode change 100644 => 100755 live/set.py diff --git a/live/set.py b/live/set.py old mode 100644 new mode 100755 index 77a4450..1517efb --- a/live/set.py +++ b/live/set.py @@ -336,6 +336,10 @@ def get_current_scene(self): def set_current_scene(self, value): """ Set the currently-selected scene index. """ self.live.cmd("/live/scene", value) + + def create_scene(self, scene_index): + """ Creates a new scene by an index. if -1 the scene is created at the end. """ + self.live.cmd("/live/scene/create", scene_index) current_scene = property(get_current_scene, set_current_scene)