Hello all, this is my first post here and one of my first attempts at working with processing (actually, first time coding in general). I have a couple of sketches that I need to cycle through for a presentation. These sketches use different libraries and share the same hardware (kinect). So far, I've figured out how to cycle between them but I cannot get them to reset so that the new sketch can use the same hardware. I think I need to reset all global variables and somehow load only the relevant ones for the current sketch.
To state the problem in one sentence: One sketch uses the Kinect (OpenKinect library), when I press a key the second sketch is loaded but cannot use the kinect (SimpleNI library) because it is assigned to the first sketch. How can I stop the running code and do a clean restart?
1