<?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[Animate panel open&#x2F;close from R to L]]></title><description><![CDATA[<p dir="auto">I am trying to animate a panel to open from R to L instead of the default L to R (and close it).</p>
<p dir="auto">@d-healey I am trying to repurpose your script while adding the X location, but I am not managing to accomplish that.</p>
<p dir="auto">Here is the script I came up with that is NOT giving me satisfactory results. In this case, I am just trying to expand/contract the width of the panel to the left while keeping the right side stationary.</p>
<pre><code>Content.makeFrontInterface(600, 500);


// btnOpen
const var btnOpenClose = Content.getComponent("btnOpenClose");

btnOpenClose.setValue(0);

inline function onbtnOpenCloseControl(component, value)
{
    pnlAni.data.open = value;
    pnlAni.startTimer(10);
};

Content.getComponent("btnOpenClose").setControlCallback(onbtnOpenCloseControl);

// pnlAni
const var pnlAni = Content.getComponent("pnlAni");
pnlAni.setPosition(150, 138, 100, 145);
var pnArray = pnlAni.getLocalBounds(0);

var x = pnArray[0];
var y = pnArray[1];

pnlAni.setTimerCallback(function(){
       
    if (this.data.open)
 
	this.setPosition(x - 10, 138, this.getWidth() + 10, 145);
        
    else
        
        this.setPosition(x - 10, 138, this.getWidth() - 10, 145);
    
    if (this.getWidth() &gt; 250 || this.getWidth() &lt; 100)
        this.stopTimer();
});

</code></pre>
<p dir="auto">What am I missing here/ doing wrong, please?</p>
]]></description><link>https://forum.hise.audio/topic/6312/animate-panel-open-close-from-r-to-l</link><generator>RSS for Node</generator><lastBuildDate>Fri, 14 Aug 2026 06:09:56 GMT</lastBuildDate><atom:link href="https://forum.hise.audio/topic/6312.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 13 Sep 2022 21:28:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Animate panel open&#x2F;close from R to L on Tue, 13 Sep 2022 23:22:12 GMT]]></title><description><![CDATA[<p dir="auto"><strong>Edit:</strong> Added a failsafe rule to reset the panel size if it falls outside of the set perimeters and stops the timer, as on subsequent script recompiles, the panel can keep shifting position until it is outside of the interface and can not show up.</p>
]]></description><link>https://forum.hise.audio/post/54694</link><guid isPermaLink="true">https://forum.hise.audio/post/54694</guid><dc:creator><![CDATA[gorangrooves]]></dc:creator><pubDate>Tue, 13 Sep 2022 23:22:12 GMT</pubDate></item><item><title><![CDATA[Reply to Animate panel open&#x2F;close from R to L on Tue, 13 Sep 2022 23:19:11 GMT]]></title><description><![CDATA[<p dir="auto">@d-healey I managed to combine your scripts to achieve the desired results!</p>
<p dir="auto">Here it is, should someone else need it.</p>
<pre><code>Content.makeFrontInterface(600, 500);


// btnOpen
const var btnOpenClose = Content.getComponent("btnOpenClose");

btnOpenClose.setValue(0);

inline function onbtnOpenCloseControl(component, value)
{
    pnlAni.data.open = value;
    pnlAni.startTimer(10);
};

Content.getComponent("btnOpenClose").setControlCallback(onbtnOpenCloseControl);

// pnlAni
const var pnlAni = Content.getComponent("pnlAni");
const pnlX = 180;
const pnlMaxWidth = 100;

pnlAni.setTimerCallback(function(){
       
    if (this.data.open)
        {
	        
        	this.set("width", this.getWidth() + 10);
        	this.set("x", pnlX + pnlMaxWidth - this.getWidth());
        
        }

        
    else
        {
	        
        	this.set("width", this.getWidth() - 10);
        	this.set("x", pnlX + pnlMaxWidth - this.getWidth());
        }

    
    if (this.getWidth() &gt; pnlMaxWidth - 1)
        {
            this.set("width", pnlMaxWidth);
            this.stopTimer();
        }
    
    else if (this.getWidth() &lt; 1)
        {
            this.set("width", 0);
            this.stopTimer();
        }
        
});

</code></pre>
<p dir="auto">And here is the HiseSnippet</p>
<pre><code>HiseSnippet 1052.3ocsV8taaaCDmxIJH1ctXEXO.D4SxnINxcscEH6OtwIovcyoFycY8aEzRzwbQhTPhNIFE4cYOD6AauAsGIkrnbcJRMZn+h4u6Nd+3oi2cCSEAzrLQJxo9ammPQNem6n4b4zdSILNp+QHmG5NfjIooXCzgySHYYzPjiyFuRA3Te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dndyGgUtvNp8N4B6THDESBREuOvTnPM+01ZDfSb8Xn0g4gg83NHcwCvNW+19nXXrv2GDnBE6Abe017j0vlebMr4oqgMOaMr44qgM+zZXyK9h1nlH+kyjhXyyD.X3w5JpNNGyIPVlNiD8ILCOy0H
</code></pre>
<p dir="auto">Thanks to you, @d-healey, I am getting stuff done and learning simultaneously. Thanks a million!</p>
]]></description><link>https://forum.hise.audio/post/54693</link><guid isPermaLink="true">https://forum.hise.audio/post/54693</guid><dc:creator><![CDATA[gorangrooves]]></dc:creator><pubDate>Tue, 13 Sep 2022 23:19:11 GMT</pubDate></item><item><title><![CDATA[Reply to Animate panel open&#x2F;close from R to L on Tue, 13 Sep 2022 21:41:46 GMT]]></title><description><![CDATA[<p dir="auto">@d-healey Wow, man. You are too fast! <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="😁" />  I shall give this a try now. Thank you so much!</p>
]]></description><link>https://forum.hise.audio/post/54692</link><guid isPermaLink="true">https://forum.hise.audio/post/54692</guid><dc:creator><![CDATA[gorangrooves]]></dc:creator><pubDate>Tue, 13 Sep 2022 21:41:46 GMT</pubDate></item><item><title><![CDATA[Reply to Animate panel open&#x2F;close from R to L on Tue, 13 Sep 2022 21:35:42 GMT]]></title><description><![CDATA[<pre><code>HiseSnippet 987.3ocsV0saaaCElxIJq1aoXcn2N.gbkyVZfbaW1FLFparS5L5RpvTRatKfVhxlvTjBhTIwon2smm8FLr8pr2f8FrcHkrE8pQVqAluvvme9H+NjmyGcPtHhHkhbjSyylkQPNela3LtZR+IXJGMb.x49tmfkJRtWoqCmkgkRRLxwYiWnc3zbSj4ye8rCwLLOhT6BgdsfFQ9IZJUU6Mn2KoL1w3XxYzTqreZugQBdeAST.7YCWeTFNZJdL4TrNsFtHmsNJlpD4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><img src="https://i.imgur.com/rCE5sc8.gif" alt="Peek 2022-09-13 22-35.gif" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.hise.audio/post/54690</link><guid isPermaLink="true">https://forum.hise.audio/post/54690</guid><dc:creator><![CDATA[David Healey]]></dc:creator><pubDate>Tue, 13 Sep 2022 21:35:42 GMT</pubDate></item></channel></rss>