<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<br>
<div class="moz-cite-prefix">Le 01/03/2016 11:31, IOhannes m
zmoelnig a écrit :<br>
</div>
<blockquote cite="mid:56D56F83.6050702@iem.at" type="cite">
<pre wrap="">On 2016-03-01 10:21, IOhannes m zmoelnig wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On 2016-03-01 07:52, patrice colet wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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.
</pre>
</blockquote>
<pre wrap="">
this pugin works for me however:
</pre>
</blockquote>
</blockquote>
<br>
<br>
I've got pd-0.46.7 on Manjaro archlinux and it doesn't work for me,
same error with the fixed version.<br>
there is no tkdnd package for archlinux, the aur version is dead,
I've compiled and installed this one:<br>
<br>
<a class="moz-txt-link-freetext" href="https://github.com/petasis/tkdnd">https://github.com/petasis/tkdnd</a><br>
<blockquote cite="mid:56D56F83.6050702@iem.at" type="cite">
<blockquote type="cite">
<pre wrap="">
- 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).
</pre>
</blockquote>
</blockquote>
<br>
This is exactly how I designed this plugin, glad it works for you,
what tkdnd version are you using?<br>
<br>
<blockquote cite="mid:56D56F83.6050702@iem.at" type="cite">
<blockquote type="cite">
<pre wrap="">
- it has the same offset-error as the original plugin, so it's not
obvious that something has been dropped.
</pre>
</blockquote>
<pre wrap="">
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.</pre>
</blockquote>
<br>
Thank you for the fix!<br>
<br>
<blockquote cite="mid:56D56F83.6050702@iem.at" type="cite">
<pre wrap="">
gmasdr
IOhannes
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list
UNSUBSCRIBE and account-management -> <a class="moz-txt-link-freetext" href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a>
</pre>
</blockquote>
<br>
</body>
</html>