# channel - the Channel object which has changed
# sampleIndex - the index of the changed sample
# val - the numeric value of the changed sample
# prev - the previous sample value
# Make sure the corresponding toggle is enabled in the CHOP Execute DAT.
def onOffToOn(channel, sampleIndex, val, prev):
def whileOn(channel, sampleIndex, val, prev):
def onOnToOff(channel, sampleIndex, val, prev):
def whileOff(channel, sampleIndex, val, prev):
def onValueChange(channel, sampleIndex, val, prev):
'angel': ['/project1/base1/ANGEL_FX', '/project1/base2/ANGEL_FX2'],
'hero': ['/project1/base1/HERO_FX', '/project1/base2/HERO_FX2'],
'feminist': ['/project1/base1/FEMINIST_FX', '/project1/base2/FEMINIST_FX2'],
'rebel': ['/project1/base1/REBEL_FX', '/project1/base2/REBEL_FX2']
# Debugging: print the channel name and value
print(f"Channel: {channel.name}, Value: {val}")
# Check if the channel name exists in the dictionary
if channel.name in container_paths:
for path in container_paths[channel.name]:
# Debugging: print the path and if the container was found
print(f"Path: {path}, Container found: {container is not None}")
print(f"Stopping cooking for: {path}")
container.allowCooking = False
print(f"Starting cooking for: {path}")
container.allowCooking = True
print(f"Channel {channel.name} not in container_paths")