Le 29/02/2016 14:41, oliver a écrit :
patrice colet wrote:
I don't know about this forum content, that's too bad...
There is this plugin made some time ago:
http://lists.puredata.info/pipermail/pd-list/2011-09/091135.html
pd also need tkdnd to be installed for drag and drop.
where do i have to put the .tcl file and how do i install tkdnd ?
in pd-extended a folder called "tkdnd2.6" was located in the "lib" folder. is this all that's needed or do i need to do anything else.
and where does you plugin go ? into the "tkdnd2.6" folder ?
tkdnd seems to be installed then... put pure-data-svn/scripts/guiplugins/dropsuite-plugin/ folder into your pd-external folder, restart pd if it doesn't complain about missing something that's all.
if everything is installed right, how is it supposed to work ?
is it possible to d&d a file into a pd patch, or is a pd patch just open if dropped upon pd.exe ?
the dropsuite-plugin should also build an object on a canvas from a dragged filename
thanks for all your patience !
thanks to remind this trick
oliver
Le 29/02/2016 12:25, oliver a écrit :
hi, list !
a lot of interesting pd patches i was sniffing for in the web point to this website, which is not existing anymore.
does anybody know, what happened to them ? is the content from there still available, and if yes: does anybody know, where ?
to explain a little more:
i was looking for some way to drag & drop a file onto a pd patch, so that it's path is output for further usage. some people said, they somehow managed it, but the patches are all on this website.
ciao
oliver
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
put pure-data-svn/scripts/guiplugins/dropsuite-plugin/ folder into your pd-external folder, restart pd if it doesn't complain about missing something that's all.
yep, it's complaining a lot, since i am not on pd-extended anymore but on vanilla (also due to heavy recommendations on this list) ;-)
anyway: thanks a lot for all your efforts !
i built a dirty little workaround on my system (windows 7) with AutoIT (the gaffertape for those who can not code) and everything works fine now ! (in case, anybody is interested, my script is attached)
thanks for all help, saved me a lot of clicking and typing !
cheers
oliver
in pd-extended a folder called "tkdnd2.6" was located in the "lib" folder. is this all that's needed or do i need to do anything else.
and where does you plugin go ? into the "tkdnd2.6" folder ?
tkdnd seems to be installed then... put pure-data-svn/scripts/guiplugins/dropsuite-plugin/ folder into your pd-external folder, restart pd if it doesn't complain about missing something that's all.
FWIW, pd-l2ork comes prepackaged with this one... HTH
I tried the plugin on pd-vanilla, it doesn't create objects when a patch is dragged on a canvas, it is supposed to create a text but nothing is happening.
Attached is a script for creating an object if a pd file in search folders is dragged on a canvas but it doesn't work. This is doing a kind of loop when the plugin do pdsend "$mytoplevel obj $x $y <myDraggedObject>", the console complains 1000x that the object is already loaded and finaly couldn't create. The same command works when it's sent from a patch.
Le 01/03/2016 02:50, Ivica Ico Bukvic a écrit :
in pd-extended a folder called "tkdnd2.6" was located in the "lib" folder. is this all that's needed or do i need to do anything else.
and where does you plugin go ? into the "tkdnd2.6" folder ?
tkdnd seems to be installed then... put pure-data-svn/scripts/guiplugins/dropsuite-plugin/ folder into your pd-external folder, restart pd if it doesn't complain about missing something that's all.
FWIW, pd-l2ork comes prepackaged with this one... HTH
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On 2016-03-01 07:52, patrice colet wrote:
I tried the plugin on pd-vanilla, it doesn't create objects when a patch is dragged on a canvas, it is supposed to create a text but nothing is happening.
afaict the gui plugins "works", but it (a) might not be what you want and (b) has some bugs that make it look like it doesn't do anything.
(a) the "text-onto-patch-plugin.tcl" plugin will allow you to drop text as comments into your Pd patch. it does NOT allow you to drop patch-snippets on a patch window. it also doesn't allow you to drop entire patche files onto another patch window (in order to paste the contents of the file into the new patch).
(b) at least on my linux system the comments are created somewhere off screen. it seems that the coordinates are calculated as absolute positions on my screen, and then used as (relative) coordinates in the patch. unfortunately the scroll-bars aren't updated, so the user doesn't get notified that somebody was created off-window.
there's also the "patches-on-pdwindow-plugin.tcl" that allows you to drop patch-files on the Pd-window (that's the Pd-console; not a patch window) and it opens the file as expected (as a top-level patch).
ghmasdrt IOhannes
On 2016-03-01 07:52, patrice colet wrote:
Attached is a script for creating an object if a pd file in search folders is dragged on a canvas but it doesn't work. This is doing a kind of loop when the plugin do pdsend "$mytoplevel obj $x $y <myDraggedObject>", the console complains 1000x that the object is already loaded and finaly couldn't create. The same command works when it's sent from a patch.
this pugin works for me however:
path. e.g. i can drop "/home/frodel/pd-externals/foo.pd" but i cannot drop "/tmp/bar.pd" (unless i added "/tmp" to my search path).
obvious that something has been dropped.
i do *not* get the "already loaded" error. this is with Pd-0.46-7 on Debian.
fgamsdr IOhannes
On 2016-03-01 10:21, IOhannes m zmoelnig wrote:
On 2016-03-01 07:52, patrice colet wrote:
Attached is a script for creating an object if a pd file in search folders is dragged on a canvas but it doesn't work. This is doing a kind of loop when the plugin do pdsend "$mytoplevel obj $x $y <myDraggedObject>", the console complains 1000x that the object is already loaded and finaly couldn't create. The same command works when it's sent from a patch.
this pugin works for me however:
- it only works for patches that are stored in my fully-qualified search
path. e.g. i can drop "/home/frodel/pd-externals/foo.pd" but i cannot drop "/tmp/bar.pd" (unless i added "/tmp" to my search path).
- it has the same offset-error as the original plugin, so it's not
obvious that something has been dropped.
attached is a fixed version which will accept files from any directory (and will try to use the search-paths to get proper objectnames) it also accepts patches being dropped on the pdwindow (just like jonathan's original plugin).
slight downer: it doesn't take local search paths (e.g. [declare -path bla]) into account and might use full paths instead.
gmasdr IOhannes
Le 01/03/2016 11:31, IOhannes m zmoelnig a écrit :
On 2016-03-01 10:21, IOhannes m zmoelnig wrote:
On 2016-03-01 07:52, patrice colet wrote:
Attached is a script for creating an object if a pd file in search folders is dragged on a canvas but it doesn't work. This is doing a kind of loop when the plugin do pdsend "$mytoplevel obj $x $y <myDraggedObject>", the console complains 1000x that the object is already loaded and finaly couldn't create. The same command works when it's sent from a patch.
this pugin works for me however:
I've got pd-0.46.7 on Manjaro archlinux and it doesn't work for me, same error with the fixed version. there is no tkdnd package for archlinux, the aur version is dead, I've compiled and installed this one:
https://github.com/petasis/tkdnd
- it only works for patches that are stored in my fully-qualified search
path. e.g. i can drop "/home/frodel/pd-externals/foo.pd" but i cannot drop "/tmp/bar.pd" (unless i added "/tmp" to my search path).
This is exactly how I designed this plugin, glad it works for you, what tkdnd version are you using?
- it has the same offset-error as the original plugin, so it's not
obvious that something has been dropped.
attached is a fixed version which will accept files from any directory (and will try to use the search-paths to get proper objectnames) it also accepts patches being dropped on the pdwindow (just like jonathan's original plugin).
slight downer: it doesn't take local search paths (e.g. [declare -path bla]) into account and might use full paths instead.
Thank you for the fix!
gmasdr IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On 2016-03-01 15:49, patrice colet wrote:
I've got pd-0.46.7 on Manjaro archlinux and it doesn't work for me, same error with the fixed version. there is no tkdnd package for archlinux, the aur version is dead, I've compiled and installed this one:
https://github.com/petasis/tkdnd
- it only works for patches that are stored in my fully-qualified search
path. e.g. i can drop "/home/frodel/pd-externals/foo.pd" but i cannot drop "/tmp/bar.pd" (unless i added "/tmp" to my search path).
This is exactly how I designed this plugin, glad it works for you, what tkdnd version are you using?
2.6-1 as packaged for Debian by hans... however i doubt that this is the reason.
try running Pd without any externals (and loaders) loaded.
i've taken the liberty to put the plugin onto github
https://github.com/pure-data/gui-plugins
let me know if you want write access.
fgasmd IOhannes
Le 01/03/2016 16:04, IOhannes m zmoelnig a écrit :
On 2016-03-01 15:49, patrice colet wrote:
I've got pd-0.46.7 on Manjaro archlinux and it doesn't work for me, same error with the fixed version. there is no tkdnd package for archlinux, the aur version is dead, I've compiled and installed this one:
https://github.com/petasis/tkdnd
- it only works for patches that are stored in my fully-qualified search
path. e.g. i can drop "/home/frodel/pd-externals/foo.pd" but i cannot drop "/tmp/bar.pd" (unless i added "/tmp" to my search path).
This is exactly how I designed this plugin, glad it works for you, what tkdnd version are you using?
2.6-1 as packaged for Debian by hans... however i doubt that this is the reason.
try running Pd without any externals (and loaders) loaded.
by running with -noprefs it's working good, it was a bad entry in preferences/path pointing to pd-externals folder.
i've taken the liberty to put the plugin onto github
https://github.com/pure-data/gui-plugins
let me know if you want write access.
fgasmd IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
is there any chance to make it work on osx?
where would tkdnd have to be installed?
thanks
johnny
Am 01.03.2016 um 16:30 schrieb patrice colet colet.patrice@free.fr:
Le 01/03/2016 16:04, IOhannes m zmoelnig a écrit :
On 2016-03-01 15:49, patrice colet wrote:
I've got pd-0.46.7 on Manjaro archlinux and it doesn't work for me, same error with the fixed version. there is no tkdnd package for archlinux, the aur version is dead, I've compiled and installed this one:
https://github.com/petasis/tkdnd
- it only works for patches that are stored in my fully-qualified search
path. e.g. i can drop "/home/frodel/pd-externals/foo.pd" but i cannot drop "/tmp/bar.pd" (unless i added "/tmp" to my search path).
This is exactly how I designed this plugin, glad it works for you, what tkdnd version are you using?
2.6-1 as packaged for Debian by hans... however i doubt that this is the reason.
try running Pd without any externals (and loaders) loaded.
by running with -noprefs it's working good, it was a bad entry in preferences/path pointing to pd-externals folder.
i've taken the liberty to put the plugin onto github
https://github.com/pure-data/gui-plugins
let me know if you want write access.
fgasmd IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Try this. Worked for me but untested elsewhere:
https://github.com/megrimm/dnd-plugin
.....
On Mar 30, 2016, at 7:09 AM, hi via Pd-list pd-list@lists.iem.at wrote:
is there any chance to make it work on osx?
where would tkdnd have to be installed?
thanks
johnny
Am 01.03.2016 um 16:30 schrieb patrice colet colet.patrice@free.fr:
Le 01/03/2016 16:04, IOhannes m zmoelnig a écrit :
On 2016-03-01 15:49, patrice colet wrote:
I've got pd-0.46.7 on Manjaro archlinux and it doesn't work for me, same error with the fixed version. there is no tkdnd package for archlinux, the aur version is dead, I've compiled and installed this one:
https://github.com/petasis/tkdnd
- it only works for patches that are stored in my fully-qualified search
path. e.g. i can drop "/home/frodel/pd-externals/foo.pd" but i cannot drop "/tmp/bar.pd" (unless i added "/tmp" to my search path).
This is exactly how I designed this plugin, glad it works for you, what tkdnd version are you using?
2.6-1 as packaged for Debian by hans... however i doubt that this is the reason.
try running Pd without any externals (and loaders) loaded.
by running with -noprefs it's working good, it was a bad entry in preferences/path pointing to pd-externals folder.
i've taken the liberty to put the plugin onto github
https://github.com/pure-data/gui-plugins
let me know if you want write access.
fgasmd IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
thanks for sharing!!
but doesn't work (osx 10.8.5, pd-0.46.7), and produces this in pd-window:
Drag and Drop on Window Drag and Drop on Canvas
UNHANDLED ERROR: syntax error in expression "[tk windowingsystem] eq "aqua" && "AppKit" ni [winfo server ...": extra tokens at end of expression while executing "if {[tk windowingsystem] eq "aqua" && "AppKit" ni [winfo server .]} { error {TkAqua Cocoa required} }" (file "/Applications/pd-0.46-7/GUI-plugins/dnd-plugin-master/tkdnd/tkdnd_macosx.tcl" line 50) invoked from within "source $dir/tkdnd_macosx.tcl" ("aqua" arm line 2) invoked from within "switch $_windowingsystem { x11 { source $dir/tkdnd_unix.tcl set _platform_namespace xdnd } win32 - windows { ..." (procedure "tkdnd::initialise" line 74) invoked from within "tkdnd::initialise {/Applications/pd-0.46-7/GUI-plugins/dnd-plugin-master/tkdnd} libtkdnd2.8.dylib tkdnd" ("package ifneeded" script) invoked from within "package require tkdnd" ("uplevel" body line 18) invoked from within "uplevel #0 $tclcode" FAILED TO LOAD /Applications/pd-0.46-7/GUI-plugins/dnd-plugin-master/dnd-plugin.tcl Am 30.03.2016 um 13:20 schrieb megrimm megrimm@gmail.com:
Try this. Worked for me but untested elsewhere:
https://github.com/megrimm/dnd-plugin
.....
On Mar 30, 2016, at 7:09 AM, hi via Pd-list pd-list@lists.iem.at wrote:
is there any chance to make it work on osx?
where would tkdnd have to be installed?
thanks
johnny
Am 01.03.2016 um 16:30 schrieb patrice colet colet.patrice@free.fr:
Le 01/03/2016 16:04, IOhannes m zmoelnig a écrit :
On 2016-03-01 15:49, patrice colet wrote:
I've got pd-0.46.7 on Manjaro archlinux and it doesn't work for me, same error with the fixed version. there is no tkdnd package for archlinux, the aur version is dead, I've compiled and installed this one:
https://github.com/petasis/tkdnd
> - it only works for patches that are stored in my fully-qualified search > path. e.g. i can drop "/home/frodel/pd-externals/foo.pd" but i cannot > drop "/tmp/bar.pd" (unless i added "/tmp" to my search path).
This is exactly how I designed this plugin, glad it works for you, what tkdnd version are you using?
2.6-1 as packaged for Debian by hans... however i doubt that this is the reason.
try running Pd without any externals (and loaders) loaded.
by running with -noprefs it's working good, it was a bad entry in preferences/path pointing to pd-externals folder.
i've taken the liberty to put the plugin onto github
https://github.com/pure-data/gui-plugins
let me know if you want write access.
fgasmd IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
yeah you prob have to compile tkdnd on 10.8 yourself. the github one was built on 10.11...
it is also possible i updated the stock tk version in vanilla from 8.4 -> 8.5 but I am not on that machine right now. if you do a search for tk 8.5 puredata you should find a tutorial for retina screen from Dan.
BTW i get same error as you on this macbook air I am on right now so I DO assume its tk version 8.5 you need but maybe someone else on list can clarify based on error.
cheers m
On Wed, Mar 30, 2016 at 7:44 AM, hi via Pd-list pd-list@lists.iem.at wrote:
thanks for sharing!!
but doesn't work (osx 10.8.5, pd-0.46.7), and produces this in pd-window:
Drag and Drop on Window Drag and Drop on Canvas
UNHANDLED ERROR: syntax error in expression "[tk windowingsystem] eq "aqua" && "AppKit" ni [winfo server ...": extra tokens at end of expression while executing "if {[tk windowingsystem] eq "aqua" && "AppKit" ni [winfo server .]} { error {TkAqua Cocoa required} }" (file "/Applications/pd-0.46-7/GUI-plugins/dnd-plugin-master/tkdnd/tkdnd_macosx.tcl" line 50) invoked from within "source $dir/tkdnd_macosx.tcl" ("aqua" arm line 2) invoked from within "switch $_windowingsystem { x11 { source $dir/tkdnd_unix.tcl set _platform_namespace xdnd } win32 - windows { ..." (procedure "tkdnd::initialise" line 74) invoked from within "tkdnd::initialise {/Applications/pd-0.46-7/GUI-plugins/dnd-plugin-master/tkdnd} libtkdnd2.8.dylib tkdnd" ("package ifneeded" script) invoked from within "package require tkdnd" ("uplevel" body line 18) invoked from within "uplevel #0 $tclcode" FAILED TO LOAD /Applications/pd-0.46-7/GUI-plugins/dnd-plugin-master/dnd-plugin.tcl Am 30.03.2016 um 13:20 schrieb megrimm megrimm@gmail.com:
Try this. Worked for me but untested elsewhere:
https://github.com/megrimm/dnd-plugin
.....
On Mar 30, 2016, at 7:09 AM, hi via Pd-list pd-list@lists.iem.at
wrote:
is there any chance to make it work on osx?
where would tkdnd have to be installed?
thanks
johnny
Am 01.03.2016 um 16:30 schrieb patrice colet colet.patrice@free.fr:
Le 01/03/2016 16:04, IOhannes m zmoelnig a écrit :
On 2016-03-01 15:49, patrice colet wrote:
I've got pd-0.46.7 on Manjaro archlinux and it doesn't work for me,
same
error with the fixed version. there is no tkdnd package for archlinux, the aur version is dead,
I've
compiled and installed this one:
https://github.com/petasis/tkdnd >> - it only works for patches that are stored in my fully-qualified
search
>> path. e.g. i can drop "/home/frodel/pd-externals/foo.pd" but i
cannot
>> drop "/tmp/bar.pd" (unless i added "/tmp" to my search path). This is exactly how I designed this plugin, glad it works for you,
what
tkdnd version are you using?
2.6-1 as packaged for Debian by hans... however i doubt that this is the reason.
try running Pd without any externals (and loaders) loaded.
by running with -noprefs it's working good, it was a bad entry in
preferences/path pointing to pd-externals folder.
i've taken the liberty to put the plugin onto github
https://github.com/pure-data/gui-plugins
let me know if you want write access.
fgasmd IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
oh BTW if you are going to build tkdnd on osx use:
https://github.com/radarhere/tkdnd/tree/arctest
and checkout the "arctest" branch... thats the one that worked for me
On Wed, Mar 30, 2016 at 9:02 AM, me.grimm megrimm@gmail.com wrote:
yeah you prob have to compile tkdnd on 10.8 yourself. the github one was built on 10.11...
it is also possible i updated the stock tk version in vanilla from 8.4 -> 8.5 but I am not on that machine right now. if you do a search for tk 8.5 puredata you should find a tutorial for retina screen from Dan.
BTW i get same error as you on this macbook air I am on right now so I DO assume its tk version 8.5 you need but maybe someone else on list can clarify based on error.
cheers m
On Wed, Mar 30, 2016 at 7:44 AM, hi via Pd-list pd-list@lists.iem.at wrote:
thanks for sharing!!
but doesn't work (osx 10.8.5, pd-0.46.7), and produces this in pd-window:
Drag and Drop on Window Drag and Drop on Canvas
UNHANDLED ERROR: syntax error in expression "[tk windowingsystem] eq "aqua" && "AppKit" ni [winfo server ...": extra tokens at end of expression while executing "if {[tk windowingsystem] eq "aqua" && "AppKit" ni [winfo server .]} { error {TkAqua Cocoa required} }" (file "/Applications/pd-0.46-7/GUI-plugins/dnd-plugin-master/tkdnd/tkdnd_macosx.tcl" line 50) invoked from within "source $dir/tkdnd_macosx.tcl" ("aqua" arm line 2) invoked from within "switch $_windowingsystem { x11 { source $dir/tkdnd_unix.tcl set _platform_namespace xdnd } win32 - windows { ..." (procedure "tkdnd::initialise" line 74) invoked from within "tkdnd::initialise {/Applications/pd-0.46-7/GUI-plugins/dnd-plugin-master/tkdnd} libtkdnd2.8.dylib tkdnd" ("package ifneeded" script) invoked from within "package require tkdnd" ("uplevel" body line 18) invoked from within "uplevel #0 $tclcode" FAILED TO LOAD /Applications/pd-0.46-7/GUI-plugins/dnd-plugin-master/dnd-plugin.tcl Am 30.03.2016 um 13:20 schrieb megrimm megrimm@gmail.com:
Try this. Worked for me but untested elsewhere:
https://github.com/megrimm/dnd-plugin
.....
On Mar 30, 2016, at 7:09 AM, hi via Pd-list pd-list@lists.iem.at
wrote:
is there any chance to make it work on osx?
where would tkdnd have to be installed?
thanks
johnny
Am 01.03.2016 um 16:30 schrieb patrice colet colet.patrice@free.fr:
Le 01/03/2016 16:04, IOhannes m zmoelnig a écrit :
On 2016-03-01 15:49, patrice colet wrote:
> > I've got pd-0.46.7 on Manjaro archlinux and it doesn't work for me,
same
> error with the fixed version. > there is no tkdnd package for archlinux, the aur version is dead,
I've
> compiled and installed this one: > > > https://github.com/petasis/tkdnd >>> - it only works for patches that are stored in my fully-qualified
search
>>> path. e.g. i can drop "/home/frodel/pd-externals/foo.pd" but i
cannot
>>> drop "/tmp/bar.pd" (unless i added "/tmp" to my search path). > This is exactly how I designed this plugin, glad it works for you,
what
> tkdnd version are you using? 2.6-1 as packaged for Debian by hans... however i doubt that this is the reason.
try running Pd without any externals (and loaders) loaded.
by running with -noprefs it's working good, it was a bad entry in
preferences/path pointing to pd-externals folder.
i've taken the liberty to put the plugin onto github
https://github.com/pure-data/gui-plugins
let me know if you want write access.
fgasmd IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-- ____________________ m.e.grimm, m.f.a, ed.m. syracuse u., tc3 megrimm.net ____________________