New playback method
This commit is contained in:
parent
3eb3d6054f
commit
31f02680d9
@ -17,6 +17,9 @@ export_options = 'scale=1920:-1,crop=1920:1080:0:102'
|
|||||||
cache_images = false
|
cache_images = false
|
||||||
[CAMERA]
|
[CAMERA]
|
||||||
# Nikon D40x
|
# Nikon D40x
|
||||||
|
# Add meter mode to center, focus mode to fixed selection
|
||||||
|
# /main/capturesettings/autofocusarea to 0
|
||||||
|
# /main/capturesettings/focusmetermode to 1
|
||||||
capturemode = 3 # use IR remote
|
capturemode = 3 # use IR remote
|
||||||
imagesize = 2 # use size S (1936x1296)
|
imagesize = 2 # use size S (1936x1296)
|
||||||
whitebalance = 1 # Natural light
|
whitebalance = 1 # Natural light
|
||||||
|
10
main_c.py
10
main_c.py
@ -63,6 +63,7 @@ from send2trash import send2trash
|
|||||||
# X picam support (picamera2)
|
# X picam support (picamera2)
|
||||||
# o notify export ending
|
# o notify export ending
|
||||||
# o Use try/except for picam and pygame lib import
|
# o Use try/except for picam and pygame lib import
|
||||||
|
# o picam liveview
|
||||||
|
|
||||||
running_from_folder = os.path.realpath(__file__)
|
running_from_folder = os.path.realpath(__file__)
|
||||||
alphabet = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z']
|
alphabet = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z']
|
||||||
@ -515,6 +516,13 @@ class KISStopmo(tk.Tk):
|
|||||||
self.update_image(None, self.img_index)
|
self.update_image(None, self.img_index)
|
||||||
|
|
||||||
|
|
||||||
|
def playback_animation(self):
|
||||||
|
while self.img_index < len(self.img_list)-1:
|
||||||
|
self.img_index += 1
|
||||||
|
root.after(62, self.update_image(None, self.img_index))
|
||||||
|
root.update_idletasks()
|
||||||
|
|
||||||
|
|
||||||
def preview_animation(self, event):
|
def preview_animation(self, event):
|
||||||
# save OS state
|
# save OS state
|
||||||
if self.onion_skin:
|
if self.onion_skin:
|
||||||
@ -523,6 +531,8 @@ class KISStopmo(tk.Tk):
|
|||||||
# playback
|
# playback
|
||||||
# TODO : Use async function for playback
|
# TODO : Use async function for playback
|
||||||
# ~ self.playback = not self.playback
|
# ~ self.playback = not self.playback
|
||||||
|
# ~ self.img_index = 0
|
||||||
|
# ~ self.playback_animation()
|
||||||
for img in self.img_list:
|
for img in self.img_list:
|
||||||
# ~ self.update_image(None, self.img_list.index(img))
|
# ~ self.update_image(None, self.img_list.index(img))
|
||||||
# ~ if self.playback:
|
# ~ if self.playback:
|
||||||
|
Loading…
Reference in New Issue
Block a user