It is a problem that the chop data of the previous container works together when the touch designer operates by container step.
Currently, we are working on a project to make a picture board by combining QR photo booth images and media pipes.
By the way, the chop data that works in step1 also works in step3.
Is there a way to automatically disable the container for this?
import time
import requests
import json
from os.path import exists
class PhotoBooth:
"""
PhotoBooth description
"""
def __init__(self, ownerComp):
self.ownerComp = ownerComp
def Step01(self):
op('select1').par.selectpanel = "Step_01_Start"
return
def Step1(self):
op('select1').par.selectpanel = "Step_1_Start"
return
def Step2(self):
op('Step_2_Take_Photo/timer1').par.initialize.pulse()
op('Step_2_Take_Photo/timer1').par.start.pulse()
op('select1').par.selectpanel = "Step_2_Take_Photo"
return
def Step3(self):
op('select1').par.selectpanel = "Step_3_Approve"
return
def Step4(self):
op('select1').par.selectpanel = "Step_4_Saving"
filename = str(round(time.time() * 1000))
op('SavePhoto').par.file = "qr-code-image-app/qr-code-image-app/public/images/" + filename + ".jpg"
op('SavePhoto').par.addframe.pulse()
me.parent().store("filename", filename)
return