Forums > Jitter

drag'n drop action

May 13, 2007 | 6:26 pm

Hi list,
Is there a way to do a drag’n drop action from one jit.pwindow to another, like in a VJ app’ ?


May 13, 2007 | 6:44 pm

not ready-made.
possible, get tim palace hover object and try.

On 5/13/07, derrickgiscloux wrote:
>
> Hi list,
> Is there a way to do a drag’n drop action from one jit.pwindow to another, like in a VJ app’ ?
>
>
>


May 13, 2007 | 6:46 pm

mybe even this not needed, [idlemouse 1] will detect on-pwindow action
also ubutton my come in handy.
On 5/13/07, yair reshef wrote:
> not ready-made.
> possible, get tim palace hover object and try.
>
>
> On 5/13/07, derrickgiscloux wrote:
> >
> > Hi list,
> > Is there a way to do a drag’n drop action from one jit.pwindow to another, like in a VJ app’ ?
> >
> >
> >
>


May 13, 2007 | 7:40 pm

sorry to insist,
Is there really a way, in max, to get an matrix-image following mouse pointer when doing a drag ‘n drop action from one pwindow to another, like with a finder to dropfile-object action.
I really don’t see how .


May 13, 2007 | 8:15 pm


May 13, 2007 | 8:25 pm


May 14, 2007 | 5:05 am


May 14, 2007 | 6:57 pm

I didn’t found …

> There are a number of ways you could do this. If you search the list/forum for "folder of images" (or movies) you’ll find several example patches to get you started.


May 14, 2007 | 7:07 pm

>I didn’t found …

take the results you get for "folder of images" and try hunting for
autopopulate. Alternately, you could look at the lower right-hand
corner of the umenu help file….

on the floor there’s a long wooden table/on the table there’s an open book/
on the page there’s a detailed drawing/and on the drawing is the name I took
Gregory Taylor http://www.rtqe.net


May 14, 2007 | 7:23 pm

Er

this is a very different concept, and you guys are discussing two
different things.

Greg/Dan:

Dragging a folder from the finder to a dropzone to autopoulate an
ubumenu is what you are suggesting.

what is being asked is

Drag from one pwindow or window, with a mac like icon being dragged
(the slightly transparent version) to another pwindow to enable some
functionality within max msp proper.

Like any cocoa app inherits from the OS, etc.

See?

On May 14, 2007, at 3:07 PM, Gregory Taylor wrote:

>> I didn’t found …
>
> take the results you get for "folder of images" and try hunting for
> autopopulate. Alternately, you could look at the lower right-hand
> corner of the umenu help file….
> —
> on the floor there’s a long wooden table/on the table there’s an
> open book/
> on the page there’s a detailed drawing/and on the drawing is the
> name I took
> Gregory Taylor http://www.rtqe.net

v a d e //

http://www.vade.info
abstrakt.vade.info


May 14, 2007 | 7:26 pm

if you want to drag/drop an image or movie from one pwindow to another, you need to use the mouse output from the pwindow to detect where you start and end. here’s a really simple example that could get you started. if you want to drag from finder to the pwindow, just put the dropfile region over the pwindow.
I’ve done a lot of this type of thing, and just be warned that if you go down this road, you will spend a lot of time developing your app, not creating with your app. If you are programming this for someone else, then that is all great, but if it’s for your own use, you may want to think of a different process that may be less slick, but takes less programming time.

#P window setfont Arial 9.;
#P window linecount 1;
#P comment 289 198 247 131137545 pnyboer at slambassador dawt com;
#P comment 289 179 247 131137545 patch by peter nyboer;
#P window linecount 2;
#P comment 290 152 247 131137545 be sure to keep moving once you "drop" over the 2nd pwindow.;
#P window linecount 1;
#P comment 290 118 247 131137545 first drag a file onto the top left box.;
#P newex 197 137 64 131137545 prepend read;
#P newex 187 157 55 131137545 jit.qt.movie;
#P newex 228 71 46 131137545 metro 33;
#P newex 34 109 64 131137545 prepend read;
#P message 37 32 44 131137545 border 1;
#P newex 73 139 40 131137545 v file01;
#P newex 48 160 55 131137545 jit.qt.movie;
#P newex 178 49 60 131137545 loadmess 1;
#P newex 184 341 40 131137545 v file01;
#P newex 41 314 19 131137545 t 1;
#P newex 184 371 52 131137545 print over!;
#P newex 41 292 30 131137545 sel 1;
#P toggle 157 50 15 0;
#P message 157 72 65 131137545 idlemouse $1;
#P newex 184 318 29 131137545 t b 0;
#P newex 185 296 27 131137545 gate;
#P newex 185 270 19 131137545 t b;
#P newex 185 249 75 131137545 route mouseidle;
#P user jit.pwindow 179 180 82 62 0 1 1 0 1 0;
#P newex 41 270 41 131137545 zl nth 3;
#P newex 41 249 65 131137545 route mouse;
#P user jit.pwindow 37 181 82 62 0 1 1 0 1 0;
#P comment 290 137 247 131137545 then drag from the left pwindow to the right pwindow;
#P user dropfile 33 49 146 100 1;
#P comment 41 67 100 131137545 drop from finder;
#P connect 20 0 1 0;
#P connect 1 0 21 0;
#P connect 11 0 3 0;
#P connect 18 0 3 0;
#P connect 3 1 4 0;
#P connect 4 0 5 0;
#P connect 5 0 13 0;
#P connect 13 0 15 0;
#P connect 22 0 18 0;
#P connect 21 0 18 0;
#P connect 1 0 19 0;
#P connect 17 0 11 0;
#P connect 12 0 11 0;
#P connect 11 0 6 0;
#P connect 23 0 6 0;
#P connect 9 0 10 0;
#P connect 10 0 16 0;
#P connect 16 0 14 0;
#P connect 6 1 7 0;
#P connect 7 0 8 0;
#P connect 10 1 9 0;
#P connect 15 0 9 0;
#P connect 22 0 23 0;
#P connect 24 0 23 0;
#P fasten 16 0 24 0 189 362 274 362 274 126 202 126;
#P connect 8 0 9 1;
#P connect 17 0 22 0;
#P window clipboard copycount 29;


May 14, 2007 | 7:30 pm

>Er
>
>this is a very different concept, and you guys are discussing two
>different things.
>
>Greg/Dan:
>
>Dragging a folder from the finder to a dropzone to autopoulate an
>ubumenu is what you are suggesting.
>
>what is being asked is
>
>Drag from one pwindow or window, with a mac like icon being dragged
>(the slightly transparent version) to another pwindow to enable some
>functionality within max msp proper.
>
>Like any cocoa app inherits from the OS, etc.
>
>See?

I wasn’t thinking about cocoa apps at all. If you can do the dropzone stuff,
now about mouse stuff, and you’ve got the filename of the loaded film, then
you could use those bits to make something that might do the trick.

on the floor there’s a long wooden table/on the table there’s an open book/
on the page there’s a detailed drawing/and on the drawing is the name I took
Gregory Taylor http://www.rtqe.net


May 15, 2007 | 1:23 pm

> if you want to drag/drop an image or movie from one pwindow to another, you
> need to use the mouse output from the pwindow to detect where you start and
> end. here’s a really simple example that could get you started. if you want
> to drag from finder to the pwindow, just put the dropfile region over the
> pwindow.
And if you want to drag from finder to jit.window, there is no way.
JF.


May 15, 2007 | 2:24 pm

>And if you want to drag from finder to jit.window,
>there is no way.

well, that’s kinda true, but if you really want to do that (i hope you have a really good reason!), you can fake a jit.window by putting a pwindow and dropfile in a patch, and formatting/sizing the window appropriately with commands to thispatcher and the pwindow.


May 15, 2007 | 5:38 pm


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