Forums > MaxMSP

Help video positions and interaction

July 6, 2012 | 6:06 pm

Hi,
So, I have 3 videos running on a window. Can somebody help me with the coordinates of the mouse? I want that clicking on video dishes.mov it loads another movie (maybe dvducks.mov) and stop with the other ones. Then, when the movie reaches its end it turns again to the screen of the 3 movies. Is it possible?
Here is the patch.

Attachments:
  1. xy.maxpat

July 6, 2012 | 9:51 pm

Any help?


July 8, 2012 | 2:51 pm

anyone?


July 8, 2012 | 6:39 pm

From the right outlet of jit.window if you connect a message object (right inlet) you will see the mouse coordinates and if it is clicked (0-1). You should then extract the coordinates XY and do some if statements to locate specific bounds. When it is inside these bounds and it is also clicked, you can send a command for the movie list to change. Have a look at the drop file object and the umenu.


July 8, 2012 | 11:53 pm

can you give me an example if you don’t mind?


July 9, 2012 | 8:16 pm

you will probably have an easier time with this kind of thing by switching to opengl.
you can use the jit.gl.videoplane to display the movies and the jit.gl.picker to indicate when you click on them.

below is a patch that should get you started:

– Pasted Max Patch, click to expand. –

July 11, 2012 | 11:19 pm

Thank you. I already can see the reading of the videos ;)


August 10, 2012 | 2:53 pm

I developed my patch and I have 10 videos playing on a single window. I ant to interact with them, when clicking in one of them it loads a different movie. I mean, each movie corresponds to another movie (that will load when clicking with the mouse). Is it possible?

Attachments:
  1. Untitled4.maxpat

Viewing 8 posts - 1 through 8 (of 8 total)