tarina

git clone https://git.tarina.org/tarina
Log | Files | Refs | README | LICENSE

commit 7615c6c4dc30696e63752963268bdcfaeabd6d9f
parent 5377cb31a3e87431dcead4aa0c505f54bf05e6fe
Author: rob <rob@tarina.org>
Date:   Mon, 11 Sep 2023 17:51:16 +0100

scene select through sockets

Diffstat:
Mtarina.py | 18++++++++++++++++++
1 file changed, 18 insertions(+), 0 deletions(-)

diff --git a/tarina.py b/tarina.py @@ -790,6 +790,10 @@ def main(): scene=int(scene) shot = countshots(filmname, filmfolder, scene) take = counttakes(filmname, filmfolder, scene, shot) + elif 'SHOT:' in pressed: + shot=pressed.split(':')[1] + shot=int(shot) + take = counttakes(filmname, filmfolder, scene, shot) elif 'REMOVE:' in pressed: scene=pressed.split(':')[1] scene=int(scene) @@ -878,6 +882,18 @@ def main(): if a!=0: sendtocamera(i,port,'SCENE:'+str(scene-1)) a=a+1 + elif pressed == "up" and menu[selected]=='SHOT:': + a=0 + for i in cameras: + if a!=0: + sendtocamera(i,port,'SHOT:'+str(shot+1)) + a=a+1 + elif pressed == "down" and menu[selected]=='SHOT:': + a=0 + for i in cameras: + if a!=0: + sendtocamera(i,port,'SHOT:'+str(shot-1)) + a=a+1 elif event == "0": newselected = 0 elif event == "1": @@ -4206,6 +4222,8 @@ def getbutton(lastbutton, buttonpressed, buttontime, holdbutton): pressed=nextstatus elif "SCENE:" in nextstatus: pressed=nextstatus + elif "SHOT:" in nextstatus: + pressed=nextstatus elif "REMOVE:" in nextstatus: pressed=nextstatus #print(nextstatus)