How to do a While Loop That Doesn't Crash TouchDesigner

Everyone has had the experience of learning Python and trying to implement their new techniques in TouchDesigner. A common problem that many people have is trying to do while loops in TouchDesigner. A regular while loop is likely to make TouchDesigner crash, which can be a real buzz kill! This is because both TouchDesigner and Python are single-threaded at their core. In this video, Elburz explains some TouchDesigner tricks and techniques you can use to build a functioning while loop in TouchDesigner that gives you all the benefits of Python's while loop without the dangers of crashing your project.