Hi, would it be possible to write an external that could respond to drag and drop? Like opening a file or something? Was anything like this ever done? Or is it impossible cause it'd require some changes to Pd? cheers
On 2018-03-12 07:53, Alexandre Torres Porres wrote:
Hi, would it be possible to write an external that could respond to drag and drop? Like opening a file or something? Was anything like this ever done? Or is it impossible cause it'd require some changes to Pd?
yes, it was done. e.g. https://github.com/megrimm/pd-dnd-plugin
fg asrdm IOhannes
Unfortunately
https://github.com/megrimm/pd-dnd-plugin
does not work on Windows:
Loading plugin: C:/Users/Lucarda/AppData/Roaming/pd/dnd-plugin.tcl
Drag and Drop on Window Drag and Drop on Canvas
UNHANDLED ERROR: couldn't load library "C:/Users/Lucarda/AppData/Roaming/pd/tkdnd/libtkdnd2.8.dylib": invalid argument while executing "load $dir/$PKG_LIB_FILE $PACKAGE_NAME" (procedure "tkdnd::initialise" line 92) invoked from within "tkdnd::initialise {C:/Users/Lucarda/AppData/Roaming/pd/tkdnd} libtkdnd2.8.dylib tkdnd" ("package ifneeded tkdnd 2.8" script) invoked from within "package require tkdnd" ("uplevel" body line 18) invoked from within "uplevel #0 $tclcode" FAILED TO LOAD C:/Users/Lucarda/AppData/Roaming/pd/dnd-plugin.tcl
Mensaje telepatico asistido por maquinas.
On 3/12/2018 5:34 AM, IOhannes m zmoelnig wrote:
On 2018-03-12 07:53, Alexandre Torres Porres wrote:
Hi, would it be possible to write an external that could respond to drag and drop? Like opening a file or something? Was anything like this ever done? Or is it impossible cause it'd require some changes to Pd?
yes, it was done. e.g. https://github.com/megrimm/pd-dnd-plugin
fg asrdm IOhannes
Pd-list@lists.iem.atmailto:Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
hello,
does not work on Windows:
yeah that libtkdnd is built for MacOS 64-bit only (i believe). tkdnd would have to be built for windows (dll?).
really the repo needs a submodule (https://github.com/petasis/tkdnd) but i think i remember it was such a pain to get built ( see https://github.com/petasis/tkdnd/issues/1 ) i just pushed what worked for my system and left it at that. it should work on all os's now that pd is all tk 8.5 and greater. i think part of the problem a couple years ago was MacOS pd vanilla was still stuck at tk 8.4.
even trying to build quick now i get:
$ ./configure --with-tcl /System/Library/Frameworks/Tk.framework/Versions/8.5/tkConfig.sh
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: /System/Library/Frameworks/Tk.framework/Versions/8.5/tkConfig.sh
checking TEA configuration... ok (TEA 3.13)
configure: configuring tkdnd 2.9
checking system version... Darwin-17.4.0
checking for Tcl configuration... configure: error: yes directory doesn't contain tclConfig.sh
....and dont have time to troubleshoot.
m
On Mon, Mar 12, 2018 at 6:16 PM, Lucas Cordiviola lucarda27@hotmail.com wrote:
Unfortunately
https://github.com/megrimm/pd-dnd-plugin
does not work on Windows:
Loading plugin: C:/Users/Lucarda/AppData/Roaming/pd/dnd-plugin.tcl
Drag and Drop on Window Drag and Drop on Canvas
UNHANDLED ERROR: couldn't load library "C:/Users/Lucarda/AppData/ Roaming/pd/tkdnd/libtkdnd2.8.dylib": invalid argument while executing "load $dir/$PKG_LIB_FILE $PACKAGE_NAME" (procedure "tkdnd::initialise" line 92) invoked from within "tkdnd::initialise {C:/Users/Lucarda/AppData/Roaming/pd/tkdnd} libtkdnd2.8.dylib tkdnd" ("package ifneeded tkdnd 2.8" script) invoked from within "package require tkdnd" ("uplevel" body line 18) invoked from within "uplevel #0 $tclcode" FAILED TO LOAD C:/Users/Lucarda/AppData/Roaming/pd/dnd-plugin.tcl
Mensaje telepatico asistido por maquinas.
On 3/12/2018 5:34 AM, IOhannes m zmoelnig wrote:
On 2018-03-12 07:53, Alexandre Torres Porres wrote:
Hi, would it be possible to write an external that could respond to drag and drop? Like opening a file or something? Was anything like this ever done? Or is it impossible cause it'd require some changes to Pd?
yes, it was done. e.g. https://github.com/megrimm/pd-dnd-plugin
fg asrdm IOhannes
_______________________________________________Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/ listinfo/pd-list
i meant:
$ ./configure --with-tcl /System/Library/Frameworks/Tk.framework/Versions/8.5/
On Mon, Mar 12, 2018 at 7:04 PM, me.grimm megrimm@gmail.com wrote:
hello,
does not work on Windows:
yeah that libtkdnd is built for MacOS 64-bit only (i believe). tkdnd would have to be built for windows (dll?).
really the repo needs a submodule (https://github.com/petasis/tkdnd) but i think i remember it was such a pain to get built ( see https://github.com/petasis/tkdnd/issues/1 ) i just pushed what worked for my system and left it at that. it should work on all os's now that pd is all tk 8.5 and greater. i think part of the problem a couple years ago was MacOS pd vanilla was still stuck at tk 8.4.
even trying to build quick now i get:
$ ./configure --with-tcl /System/Library/Frameworks/Tk. framework/Versions/8.5/tkConfig.sh
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: /System/Library/Frameworks/Tk. framework/Versions/8.5/tkConfig.sh
checking TEA configuration... ok (TEA 3.13)
configure: configuring tkdnd 2.9
checking system version... Darwin-17.4.0
checking for Tcl configuration... configure: error: yes directory doesn't contain tclConfig.sh
....and dont have time to troubleshoot.
m
On Mon, Mar 12, 2018 at 6:16 PM, Lucas Cordiviola lucarda27@hotmail.com wrote:
Unfortunately
https://github.com/megrimm/pd-dnd-plugin
does not work on Windows:
Loading plugin: C:/Users/Lucarda/AppData/Roaming/pd/dnd-plugin.tcl
Drag and Drop on Window Drag and Drop on Canvas
UNHANDLED ERROR: couldn't load library "C:/Users/Lucarda/AppData/Roam ing/pd/tkdnd/libtkdnd2.8.dylib": invalid argument while executing "load $dir/$PKG_LIB_FILE $PACKAGE_NAME" (procedure "tkdnd::initialise" line 92) invoked from within "tkdnd::initialise {C:/Users/Lucarda/AppData/Roaming/pd/tkdnd} libtkdnd2.8.dylib tkdnd" ("package ifneeded tkdnd 2.8" script) invoked from within "package require tkdnd" ("uplevel" body line 18) invoked from within "uplevel #0 $tclcode" FAILED TO LOAD C:/Users/Lucarda/AppData/Roaming/pd/dnd-plugin.tcl
Mensaje telepatico asistido por maquinas.
On 3/12/2018 5:34 AM, IOhannes m zmoelnig wrote:
On 2018-03-12 07:53, Alexandre Torres Porres wrote:
Hi, would it be possible to write an external that could respond to drag and drop? Like opening a file or something? Was anything like this ever done? Or is it impossible cause it'd require some changes to Pd?
yes, it was done. e.g. https://github.com/megrimm/pd-dnd-plugin
fg asrdm IOhannes
_______________________________________________Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/li stinfo/pd-list
-- ____________________ m.e.grimm, m.f.a, ed.m. syracuse u., tc3 megrimm.net ____________________
Drag & Drop would definitely be cool!
I got something going with the old (deprecated) [toxy/tot] but it's very complicated like that. I'm trying to build a bank manager to drag and drop patches from inside the same patch bank or another bank (128 patches each). It's probably doable like that but not easy.
Unfortunately I had to stop in the middle of getting it done ... ... so I don't know, yet if it would actually work.
A working drag and drop function/external would be fantastic.
Ingo
From: Pd-list [mailto:pd-list-bounces@lists.iem.at] On Behalf Of Alexandre Torres Porres Sent: Monday, March 12, 2018 7:54 AM To: Pd-List Subject: [PD] drag and drop external?
Hi, would it be possible to write an external that could respond to drag and drop? Like opening a file or something? Was anything like this ever done? Or is it impossible cause it'd require some changes to Pd? cheers
2018-03-12 13:29 GMT-03:00 Ingo ingo@miamiwave.com:
Drag & Drop would definitely be cool!
I got something going with the old (deprecated) [toxy/tot] but it's very complicated like that.
can you share?
So it would be possible with an external, huh? I thought that maybe, somehow, it could only be possible with a .tcl plugin, like posted here.
hi,
here's my personal hack to provide a windows PD with drag and drop features.
it's a modified .tcl script i from IOhannes (originally from here: https://github.com/pd-externals/gui-plugins/tree/master/dropsuite)
the script provides the following:
original script:
1.) opens a PD patch when dropped onto PD window 2.) creates a PD object when a .pd file is dropped upon a patch canvas
the modified part:
3.) sends the name of any dropped file (anything else than "*.pd") to a global receiver. with the extra information of a GOP size and position, a "drop field" can be defined (see subpatch "dropname").
the whole mechanism is, as i said, a hack and needs IEMGUTS loaded. also an extra tcl package called "tkdnd2.6" (included in attached .zip).
it's perfectly "working on my machine". the dnd readout is located inside [ol_dropfile]'s subpatch called [pd dropname].
i included all the files that are needed and where to put them. don't know if it's working on OSX and/or linux (untested there ...)
hope this helps
best
oliver
Alexandre Torres Porres wrote:
2018-03-12 13:29 GMT-03:00 Ingo <ingo@miamiwave.com mailto:ingo@miamiwave.com>:
Drag & Drop would definitely be cool! I got something going with the old (deprecated) [toxy/tot] but it's very complicated like that.
can you share?
So it would be possible with an external, huh? I thought that maybe, somehow, it could only be possible with a .tcl plugin, like posted here.
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list