Forums > MaxMSP

A simple question : Next and Previous buttons for movies ?

April 17, 2012 | 11:40 am

Hello there,

Here’s a simple question :
Got a bunch of 10 samples of movies (movie1.mov, movie2.mov, movie3.mov, and so on…).

How can i create a patch that say : With a toggle (or an osc event), play a first random movie (looped), and if the user clicks on a Next button, he’s got the next movie playing. If he clicks on a previous button, he’s got the previous movie ?

Best
E’


April 17, 2012 | 12:01 pm

You could do something like this.

-chris

– Pasted Max Patch, click to expand. –

April 17, 2012 | 12:02 pm

This is more commented ;)

-chris

– Pasted Max Patch, click to expand. –

April 17, 2012 | 12:58 pm

Waoow !
Great Thanks Chris.
You save my life !

Just find weird that Max does not include a previous" and "next" objects.

Thanks again
Best
E’


April 17, 2012 | 2:34 pm

It does have the [inc] object though, which could be useful for this I’d imagine!

: )


April 17, 2012 | 2:47 pm

Ooh, I didn’t know about about that incdec object, great for UI design.

And I’m guessing the reason why there are no next and previous buttons is because it would be hard to design one to fit everyone’s needs, and I guess it’s actually easier for people to make their own for the specific needs, (or ask people on the forums ;).

-chris


April 17, 2012 | 5:33 pm

Oops. I meant to say [incdec]! Not [inc]. At least you got it!

: )


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