<?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[Show default preset name on first launch]]></title><description><![CDATA[<p dir="auto">This is the top bar of my plugin when I open the project in HISE. The default preset <code>00 INIT</code> loads, sets the knob values and shows the preset browser.</p>
<p dir="auto"><img src="/assets/uploads/files/1781260970187-cleanshot-2026-06-12-at-11.42.35-2x.png" alt="CleanShot 2026-06-12 at 11.42.35@2x.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">This is the top bar of my plugin on first launch in a DAW. The default preset <code>00 INIT</code> loads and sets the knob values, but <strong>doesn't</strong> show in the preset browser.</p>
<p dir="auto"><img src="/assets/uploads/files/1781260933663-cleanshot-2026-06-12-at-11.41.14-2x.png" alt="CleanShot 2026-06-12 at 11.41.14@2x.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Is this intended behaviour or a bug?</p>
<p dir="auto">The preset browser is fully functional  - I can load any preset, and the first click of the <code>&gt;</code> icon does show the <code>00 INIT</code> preset. I'm just surprised it doesn't show on launch.</p>
<p dir="auto">If the plugin knows to load the default preset, shouldn't it also know to show the name in the preset browser?</p>
<p dir="auto">I expected:</p>
<ul>
<li>on first launch (no DAW session data), the default preset loads and shows in the preset bar</li>
<li>on subsequent launch from a saved DAW session, the saved state should load</li>
</ul>
]]></description><link>https://forum.hise.audio/topic/14844/show-default-preset-name-on-first-launch</link><generator>RSS for Node</generator><lastBuildDate>Fri, 12 Jun 2026 13:56:19 GMT</lastBuildDate><atom:link href="https://forum.hise.audio/topic/14844.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 12 Jun 2026 10:47:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Show default preset name on first launch on Fri, 12 Jun 2026 11:54:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/449">@ustk</a> Good call. Claude suggested I update to this:</p>
<pre><code>UserPresetHandler.setPostCallback(function(presetFile)
  {
      // On first launch the default preset loads with no file (frontend leaves
      // currentlyLoadedFile empty), so getCurrentUserPresetName() is "". Fall back
      // to the default preset name. (Editor returns the real name, so it's unaffected.)
      var name = Engine.getCurrentUserPresetName();
      btnShowPresetBrowser.set("text", name != "" ? name : "00 INIT");
  });
</code></pre>
<p dir="auto">I'll try it and make sure it works on first launch, and doesn't interfere with reloading DAW sessions.</p>
]]></description><link>https://forum.hise.audio/post/121168</link><guid isPermaLink="true">https://forum.hise.audio/post/121168</guid><dc:creator><![CDATA[dannytaurus]]></dc:creator><pubDate>Fri, 12 Jun 2026 11:54:38 GMT</pubDate></item><item><title><![CDATA[Reply to Show default preset name on first launch on Fri, 12 Jun 2026 11:54:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/357">@dannytaurus</a></p>
<pre><code>	inline function updatePresetLabel(nameOnly: number)
	{
		if (!isDefined(currentPresetFile))
			return;

		local category = currentPresetFile.getParentDirectory().toString(currentPresetFile.NoExtension);
		local name = currentPresetFile.toString(currentPresetFile.NoExtension);

		if (nameOnly)
			btnPresetBrowser.set("text", name);
		else
			btnPresetBrowser.set("text", category + " | " + name);
	}
</code></pre>
<p dir="auto">I also call this in the post save callback too.</p>
]]></description><link>https://forum.hise.audio/post/121167</link><guid isPermaLink="true">https://forum.hise.audio/post/121167</guid><dc:creator><![CDATA[David Healey]]></dc:creator><pubDate>Fri, 12 Jun 2026 11:54:06 GMT</pubDate></item><item><title><![CDATA[Reply to Show default preset name on first launch on Fri, 12 Jun 2026 11:53:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/12">@David-Healey</a> said in <a href="/post/121159">Show default preset name on first launch</a>:</p>
<blockquote>
<p dir="auto">updatePresetLabel</p>
</blockquote>
<p dir="auto">What does your <code>updatePresetLabel()</code> look like? Because I have the following already, but it's setting the text to <code>""</code>:</p>
<pre><code>UserPresetHandler.setPostCallback(function(presetFile)
  {
      btnShowPresetBrowser.set("text", Engine.getCurrentUserPresetName());
  });
</code></pre>
<p dir="auto">Seems like on first launch, <code>Engine.getCurrentUserPresetName()</code> returns <code>""</code>.</p>
]]></description><link>https://forum.hise.audio/post/121166</link><guid isPermaLink="true">https://forum.hise.audio/post/121166</guid><dc:creator><![CDATA[dannytaurus]]></dc:creator><pubDate>Fri, 12 Jun 2026 11:53:16 GMT</pubDate></item><item><title><![CDATA[Reply to Show default preset name on first launch on Fri, 12 Jun 2026 11:15:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/357">@dannytaurus</a> I've just hit this problem for the 100s time a couple of days ago and it alway melts my brain...</p>
<p dir="auto">What I do is to force "init" in the postCallback when the presetFile is undefined, meaning it's init time...</p>
<p dir="auto">Another way could be to save the label in preset, but this only brought me more pain down the line</p>
]]></description><link>https://forum.hise.audio/post/121161</link><guid isPermaLink="true">https://forum.hise.audio/post/121161</guid><dc:creator><![CDATA[ustk]]></dc:creator><pubDate>Fri, 12 Jun 2026 11:15:54 GMT</pubDate></item><item><title><![CDATA[Reply to Show default preset name on first launch on Fri, 12 Jun 2026 11:11:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/357">@dannytaurus</a> said in <a href="/post/121156">Show default preset name on first launch</a>:</p>
<blockquote>
<p dir="auto">Is this intended behaviour or a bug?</p>
</blockquote>
<p dir="auto">Depends on your script.</p>
<p dir="auto">I use this in mine</p>
<pre><code>	const uph = Engine.createUserPresetHandler();

	uph.setPostCallback(function(presetFile)
	{
		updatePresetLabel(); // Name display handled here
	});
</code></pre>
]]></description><link>https://forum.hise.audio/post/121159</link><guid isPermaLink="true">https://forum.hise.audio/post/121159</guid><dc:creator><![CDATA[David Healey]]></dc:creator><pubDate>Fri, 12 Jun 2026 11:11:07 GMT</pubDate></item></channel></rss>