Hello all,
I am very new to Processing so would appreciate your help.
I have 4 objects painted with BARE conductive electric paint. I have 4 short video clips for each object. Each object has its own video clip. I need a video clip to play when an object is being continuously touched, and for it to pause when the hand is taken off the object.
I have connected a Makey Makey + Alligator clips to the conductive painted objects and also the space bar on the makey makey board. I used the paint on the table surface, so when touching this and the painted object the cursor space is moving in a text doc (just to test).
One of my videos is called M1.mov
The code I have at the moment is but I don't know if it is any good?
import processing.video.*; Movie M1;
void setup() { size(640, 360); background(255); M1 = new Movie(this, "M1.mov"); }
void draw() { background(0); }
void keyPressed() {
if (key == 'r') { image(M1, 0, 0); println("r"); } }
void movieEvent(Movie m) { m.read(); }
Many thanks to all who can help, Vara