how to bang if colour is in live camera feed....

mdup90's icon

I am creating this installation for April. However I am just prototyping it now. And i seem to be having a brain freeze.

I want to use live camera feed. And when a colour is shown, a movie is triggered.

I need to...
1. open camera feed
2. swatch colour to decide what colour will trigger the video
3. read is colour is on screen
4. send "seen"
5. recieve "seen" and bang (until the colour is no longer on screen and "seen" is not sent)

my problem is that i cannot think of a good way to do step 3. None of the tutorials i have looked at do anything similar.

cap10subtext's icon

Jit.findbounds (Jitter Tutorial 25 - Tracking the Position of a Color in a Movie) does it extremely well, but Cyclops can do this even better.

mdup90's icon

i have followed this tutorial and can track the colour.... but i cannot quite figure out out to bang when the colour is in the camera's view. can you suggest a tutorial for this?

goto10's icon

Can't you just do a jit.3m from there and a [> 0] out of the middle outlet?

mdup90's icon

yes! i finally got it working. thanks for the help and reassurance i was on the correct track.

Max Patch
Copy patch and select New From Clipboard in Max.

here is what i have done for anyone out there who is troubled as well.