Skip to content

Commit

Permalink
Merge pull request ideoforms#14 from KyrillosL/master
Browse files Browse the repository at this point in the history
Added a function to create a scene (LiveOsc need to be updated too)
  • Loading branch information
ideoforms authored Apr 6, 2020
2 parents 4cfa653 + 6a1dc95 commit bc8c458
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions live/set.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit bc8c458

Please sign in to comment.