Cycling through multiple Quicktime videos

Dec 2, 2008 at 4:51pm

Cycling through multiple Quicktime videos

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

#41146
Dec 2, 2008 at 5:52pm

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

#146281
Dec 2, 2008 at 5:56pm

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.

#146282
Dec 2, 2008 at 7:01pm

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.

#146283
Dec 2, 2008 at 7:11pm

#146284
Dec 2, 2008 at 9:01pm

#146285

You must be logged in to reply to this topic.