# 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):
'/project1/base1/ADD_FACE',
'/project1/base1/Angel_LUTS',
'/project1/base1/ANGEL_STAMPS',
'/project1/base1/ANGEL_POST'
'hero': ['/project1/base1/HERO_FX'],
'feminist': ['/project1/base1/FEMINIST_FX'],
'rebel': ['/project1/base1/REBEL_FX']
# 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")