<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Drag and drop multiple audio files onto a ScriptPanel?]]></title><description><![CDATA[<p dir="auto">Hi everyone,</p>
<p dir="auto">I’m building a custom samplemap editor / instrument builder inside a scripted UI. The goal is to let users drag audio samples from Finder onto a <code>ScriptPanel</code> keymap, preview where the zones will land, then drop them to import and map the samples.</p>
<p dir="auto">Single-file drag and drop is working well. I’m using:</p>
<pre><code class="language-javascript">Panel.setFileDropCallback("All Callbacks", "*.wav;*.aif;*.aiff", function(f)
{
    if (f.hover)
    {
        // update keymap preview from f.x / f.y
    }

    if (f.drop)
    {
        // import f.fileName
    }
});
</code></pre>
<p dir="auto">The problem is multi-file drag/drop from Finder. When I select multiple audio files and drag them over the scripted panel, HISE rejects the drag and the files fly back to Finder. The callback does not seem to fire, so I never get a chance to inspect whether <code>f.fileName</code> is an array.</p>
<p dir="auto">I tried:</p>
<ul>
<li><code>*.wav;*.aif;*.aiff</code></li>
<li><code>*.wav,*.aif,*.aiff</code></li>
<li><code>*.*</code></li>
<li><code>*</code></li>
<li>a narrow <code>*.aif</code> test with only <code>.aif</code> files selected</li>
</ul>
<p dir="auto">Single-file drop works, but multi-file drop still gets rejected before the callback. The docs say <code>f.fileName</code> should be an array if more than one matching file is dropped, so I assume this should be possible from script.</p>
<p dir="auto">What I’m trying to reproduce is similar to HISE’s native SampleMap Editor behavior: drag multiple samples into the map, then choose a mapping mode like Drop Point, Filename Token Parser, etc. I don’t need to invoke the native dialog directly, but I do need the scripted panel to receive the full dropped file list.</p>
<p dir="auto">Questions:</p>
<ul>
<li>Is <code>ScriptPanel.setFileDropCallback()</code> expected to accept multi-file drags from Finder on macOS?</li>
<li>Is there a specific wildcard format or callback level required for this?</li>
<li>Does multi-file drag only work from HISE’s internal file browser rather than Finder?</li>
<li>Is the native SampleMap Editor using a different internal drag/drop path that isn’t exposed to scripting?</li>
<li>Is there a workaround, eg. folder drop, Broadcaster, FloatingTile, or using the Sampler/SampleMap editor API?</li>
</ul>
<p dir="auto">Any guidance would be hugely appreciated.</p>
]]></description><link>https://forum.hise.audio/topic/14687/drag-and-drop-multiple-audio-files-onto-a-scriptpanel</link><generator>RSS for Node</generator><lastBuildDate>Fri, 01 May 2026 22:45:39 GMT</lastBuildDate><atom:link href="https://forum.hise.audio/topic/14687.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 01 May 2026 19:21:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Drag and drop multiple audio files onto a ScriptPanel? on Fri, 01 May 2026 20:48:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/2353">@CyberGen</a> said in <a href="/post/119979">Drag and drop multiple audio files onto a ScriptPanel?</a>:</p>
<blockquote>
<p dir="auto">s there a workaround, eg. folder drop</p>
</blockquote>
<p dir="auto">Folder drop</p>
<blockquote>
<p dir="auto">if you want to only allow folders to be dropped, you need to supply the string "{FOLDER}" as wildcard.</p>
</blockquote>
<p dir="auto"><a href="https://docs.hise.audio/scripting/scripting-api/scriptpanel/index.html#setfiledropcallback" rel="nofollow ugc">https://docs.hise.audio/scripting/scripting-api/scriptpanel/index.html#setfiledropcallback</a></p>
]]></description><link>https://forum.hise.audio/post/119981</link><guid isPermaLink="true">https://forum.hise.audio/post/119981</guid><dc:creator><![CDATA[David Healey]]></dc:creator><pubDate>Fri, 01 May 2026 20:48:54 GMT</pubDate></item></channel></rss>