<?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[Default button state on load]]></title><description><![CDATA[<p dir="auto">I have a toggle button that controls the visibility of a panel.</p>
<p dir="auto">Panel defaults to visible on load, and the button default value set to <code>1.0</code> in interface designer props.</p>
<p dir="auto">But when I load the project the button is in the 'off' state, which doesn't match the panel display state.</p>
<p dir="auto">Do I have to script the 'on' value in <code>onInit</code>, or is there a way to do it just in the interface designer?</p>
<pre><code>Content.getComponent("btnShowPanel").setValue(1.0);
</code></pre>
]]></description><link>https://forum.hise.audio/topic/14024/default-button-state-on-load</link><generator>RSS for Node</generator><lastBuildDate>Sun, 15 Mar 2026 07:57:36 GMT</lastBuildDate><atom:link href="https://forum.hise.audio/topic/14024.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 14 Dec 2025 11:48:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Default button state on load on Sun, 14 Dec 2025 17:30:28 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> <img src="https://forum.hise.audio/assets/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f632.png?v=fba14f4754a" class="not-responsive emoji emoji-emoji-one emoji--astonished_face" style="height:23px;width:auto;vertical-align:middle" title=":astonished_face:" alt="😲" /> far worse than all I imagined <img src="https://forum.hise.audio/assets/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f601.png?v=fba14f4754a" class="not-responsive emoji emoji-emoji-one emoji--beaming_face_with_smiling_eyes" style="height:23px;width:auto;vertical-align:middle" title=":beaming_face_with_smiling_eyes:" alt="😁" /></p>
]]></description><link>https://forum.hise.audio/post/114352</link><guid isPermaLink="true">https://forum.hise.audio/post/114352</guid><dc:creator><![CDATA[ustk]]></dc:creator><pubDate>Sun, 14 Dec 2025 17:30:28 GMT</pubDate></item><item><title><![CDATA[Reply to Default button state on load on Sun, 14 Dec 2025 17:06:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/449">@ustk</a></p>
<p dir="auto">My current project :)</p>
<p dir="auto"><img src="/assets/uploads/files/1765731966206-e821d434-e0d3-42b4-9449-1d4b75460505-image.png" alt="e821d434-e0d3-42b4-9449-1d4b75460505-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.hise.audio/post/114344</link><guid isPermaLink="true">https://forum.hise.audio/post/114344</guid><dc:creator><![CDATA[David Healey]]></dc:creator><pubDate>Sun, 14 Dec 2025 17:06:14 GMT</pubDate></item><item><title><![CDATA[Reply to Default button state on load on Sun, 14 Dec 2025 16:53:45 GMT]]></title><description><![CDATA[<p dir="auto"><img src="/assets/uploads/files/1765731213375-dave.png" alt="dave.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.hise.audio/post/114340</link><guid isPermaLink="true">https://forum.hise.audio/post/114340</guid><dc:creator><![CDATA[ustk]]></dc:creator><pubDate>Sun, 14 Dec 2025 16:53:45 GMT</pubDate></item><item><title><![CDATA[Reply to Default button state on load on Sun, 14 Dec 2025 16:31:30 GMT]]></title><description><![CDATA[<p dir="auto">Another option is to have the panel and the button watch each other's states using broadcasters.</p>
]]></description><link>https://forum.hise.audio/post/114338</link><guid isPermaLink="true">https://forum.hise.audio/post/114338</guid><dc:creator><![CDATA[David Healey]]></dc:creator><pubDate>Sun, 14 Dec 2025 16:31:30 GMT</pubDate></item><item><title><![CDATA[Reply to Default button state on load on Sun, 14 Dec 2025 14:54:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/449">@ustk</a> Could do, but I prefer to keep the button's 'on' state synced to the panel's visible state.</p>
<p dir="auto">If I start flipping values as a workaround, my future self will not thank me when he looks at the code in 2 years! <img src="https://forum.hise.audio/assets/plugins/nodebb-plugin-emoji/emoji/android/1f602.png?v=fba14f4754a" class="not-responsive emoji emoji-android emoji--joy" style="height:23px;width:auto;vertical-align:middle" title=":joy:" alt="😂" /></p>
]]></description><link>https://forum.hise.audio/post/114319</link><guid isPermaLink="true">https://forum.hise.audio/post/114319</guid><dc:creator><![CDATA[dannytaurus]]></dc:creator><pubDate>Sun, 14 Dec 2025 14:54:34 GMT</pubDate></item><item><title><![CDATA[Reply to Default button state on load on Sun, 14 Dec 2025 14:22:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/449">@ustk</a><br />
That's a cool idea!</p>
]]></description><link>https://forum.hise.audio/post/114311</link><guid isPermaLink="true">https://forum.hise.audio/post/114311</guid><dc:creator><![CDATA[Oli Ullmann]]></dc:creator><pubDate>Sun, 14 Dec 2025 14:22:42 GMT</pubDate></item><item><title><![CDATA[Reply to Default button state on load on Sun, 14 Dec 2025 13:54:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/357">@dannytaurus</a> You could also invert your logic so <code>!value</code> actually means the panel is showing</p>
]]></description><link>https://forum.hise.audio/post/114305</link><guid isPermaLink="true">https://forum.hise.audio/post/114305</guid><dc:creator><![CDATA[ustk]]></dc:creator><pubDate>Sun, 14 Dec 2025 13:54:50 GMT</pubDate></item><item><title><![CDATA[Reply to Default button state on load on Sun, 14 Dec 2025 13:25:18 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> No, it's for a show/hide tooltips panel.</p>
<p dir="auto">I suppose I should be saving the value somewhere so it survives across plugin loads.</p>
<p dir="auto"><s>Are there any docs/examples for saving user preferences?</s></p>
<p dir="auto">EDIT: found an example: <a href="https://docs.hise.dev/tutorials/scripting/index.html#user-preference-system" rel="nofollow ugc">https://docs.hise.dev/tutorials/scripting/index.html#user-preference-system</a></p>
]]></description><link>https://forum.hise.audio/post/114304</link><guid isPermaLink="true">https://forum.hise.audio/post/114304</guid><dc:creator><![CDATA[dannytaurus]]></dc:creator><pubDate>Sun, 14 Dec 2025 13:25:18 GMT</pubDate></item><item><title><![CDATA[Reply to Default button state on load on Sun, 14 Dec 2025 12:27:37 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/114299">Default button state on load</a>:</p>
<blockquote>
<p dir="auto">Do I have to script the 'on' value in onInit,</p>
</blockquote>
<p dir="auto">Is the button set to saveInPreset?</p>
]]></description><link>https://forum.hise.audio/post/114303</link><guid isPermaLink="true">https://forum.hise.audio/post/114303</guid><dc:creator><![CDATA[David Healey]]></dc:creator><pubDate>Sun, 14 Dec 2025 12:27:37 GMT</pubDate></item><item><title><![CDATA[Reply to Default button state on load on Sun, 14 Dec 2025 12:21:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/3118">@Oli-Ullmann</a> Cools, cheers <img src="https://forum.hise.audio/assets/plugins/nodebb-plugin-emoji/emoji/android/1f44d.png?v=fba14f4754a" class="not-responsive emoji emoji-android emoji--+1" style="height:23px;width:auto;vertical-align:middle" title=":+1:" alt="👍" /></p>
]]></description><link>https://forum.hise.audio/post/114302</link><guid isPermaLink="true">https://forum.hise.audio/post/114302</guid><dc:creator><![CDATA[dannytaurus]]></dc:creator><pubDate>Sun, 14 Dec 2025 12:21:41 GMT</pubDate></item><item><title><![CDATA[Reply to Default button state on load on Sun, 14 Dec 2025 11:59:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/357">@dannytaurus</a><br />
That's how I always do it.</p>
]]></description><link>https://forum.hise.audio/post/114300</link><guid isPermaLink="true">https://forum.hise.audio/post/114300</guid><dc:creator><![CDATA[Oli Ullmann]]></dc:creator><pubDate>Sun, 14 Dec 2025 11:59:00 GMT</pubDate></item></channel></rss>