Forums > Jitter

Cycling through multiple Quicktime videos

December 2, 2008 | 4:51 pm

I’m looking for a way to cycle between 4 quicktime movies using mouse clicks.

I would like the patch to begin by playing video#1 and by clicking the left mouse button have it switch to video#2 and then video#3 and then video#4 and then back to video#1.

Likewise, I would like the right mouse button to switch between the videos in the reverse order, going from video#1 to video#4 to video#3, etc…

The effect would be very much like flipping through TV channels.

I’m sure there’s a simple way to do this, but I’m quite new to Max so any help would be greatly appreciated.

Thanks


December 2, 2008 | 5:52 pm

One way to do this is create a folder of movies on your desktop and use the
folder object to create a file path to them that you can access from your
patch. look at the help for the folder object, filepath, relative path, and
open dialog.

Each of these can be used to access the files and with the ubu menu you can
trigger them by index number. So if you have the index number you can use
the counter object or something simliar to move through them in ascending or
descending order.

I wish I could give you a sample patch but I don’t have MAX on this machine.

Tell me if this is confusing and I can fill in the gaps.

Hope it helps,

Joe

On Tue, Dec 2, 2008 at 11:51 AM, Brian wrote:

>
> I’m looking for a way to cycle between 4 quicktime movies using mouse
> clicks.
>
> I would like the patch to begin by playing video#1 and by clicking the left
> mouse button have it switch to video#2 and then video#3 and then video#4 and
> then back to video#1.
>
> Likewise, I would like the right mouse button to switch between the videos
> in the reverse order, going from video#1 to video#4 to video#3, etc…
>
> The effect would be very much like flipping through TV channels.
>
> I’m sure there’s a simple way to do this, but I’m quite new to Max so any
> help would be greatly appreciated.
>
> Thanks
>


"There is no such thing as an empty space or an empty time. There is always
something to see, something to hear. In fact, try as we may to make a
silence, we cannot." -John Cage



MIB
December 2, 2008 | 5:56 pm

the cycling part should be easy, have a look at the tutorials.
for the mouse input have a look at mousestate. this will give you the left click. not sure though how you would do the right click. i don’t know of any object but have a look at maxobjects.com, maybe someone wrote an external that does what you are looking for.


December 2, 2008 | 7:01 pm

I would use [umenu] (Max5) or [ubumenu] (Max4) and its prefix capabilities.
Jean-Francois.

> One way to do this is create a folder of movies on your desktop and use the
> folder object to create a file path to them that you can access from your
> patch. look at the help for the folder object, filepath, relative path, and
> open dialog.
>
> Each of these can be used to access the files and with the ubu menu you can
> trigger them by index number. So if you have the index number you can use
> the counter object or something simliar to move through them in ascending or
> descending order.
>
> I wish I could give you a sample patch but I don’t have MAX on this machine.


December 2, 2008 | 7:11 pm


December 2, 2008 | 9:01 pm


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