So basically in my MessageEvent() I have it select a video based on text input(this part works fine) but then I want it to fade out at the end(or at the very least stay up for a set time then cut out) here is what I have
import time
#selects video, this part works
time.sleep(7)
opac = 0.0 #this stands for opacity
for i in range(0, 10):
time.sleep(.1)
modul8.setValue('ctrl_layer_alpha, opac, 1)
opac -= .1
the problem I am running into is it does not effect anything on the screen until the entire script has finished running, so that after the message call it waits about 8 seconds then displays a completely faded layer never showing what I want. I would be happy with just playing the video and then a hard cut after the length of time, but it wont do that.
Does anyone know whats wrong with my code or can think of another way of doing this?