def onValueChange(channel, sampleIndex, val, prev):
val = int(val) # Ensure val is an integer
prev = int(prev) # Ensure prev is also an integer
# Only update if the value has changed
if val == prev:
return
# Define the mapping of values to operators
ops_mapping = {
0: 'base_coffee',
1: 'base_landscape',
2: 'base_dream'
}
# Iterate over all defined operators and update render state
for key, op_name in ops_mapping.items():
op(op_name).allowCooking = (key == val) # Adjusts rendering instead of bypassing
https://docs.google.com/presentation/d/1nxQDb6icqHbmnM4EkGR80Wpp8mh3WornTPaB_leTvgw/edit?usp=sharing
https://interactiveimmersive.io/
TD 學習資源
https://www.youtube.com/watch?v=kyxzNJKCNTA
https://matthewragan.com/teaching-resources/touchdesigner/ame-394-compositional-and-computational-principles-for-media-arts
Bileam Tschepe aka elekktronaut is a Berlin based artist and educator who creates audio-reactive, interactive and organic digital artworks, systems and installations in TouchDesigner, collaborating with and teaching people worldwide.
https://www.youtube.com/c/bileamtschepe/videos
Pali, an interdisciplinary designer and artist who mostly creating 2D and 3D but also realtime animations.
https://www.youtube.com/channel/UCWBbakpo_cATqJy9Dzf9x4w/videos