Hide Panels When Idle! [Solved]



  • Hello Everyone

    Anyone Can Help With This Scenario?

    The Below Script Has 2 Knobs And 2 Panels
    By Turning The Knob 1 Panel 1 Shows Up And Panel 2 Disappears
    And By Tweaking The Knob2 Panel 2 Shows Up And Panel 1 Disappears

    What I Try To Achieve Is To Add A Timer To The Script To Hide The Visible Panel After A Few Seconds. ( When Both Knobs Are Idle )
    Any Help Is Much Apperciated

    Here Is The Snippet

    HiseSnippet 970.3ocsV0saaaCElxNLq1qtnEXO.B4JEft.Y0re.JBRVriKLZSp2bavtnCELRzwDQhzShNaFAAnuA60qWWfdUuoO.EH6PRIKoLaUOCDci84muC+zGoNGNHV3SSRDwHqFuZ1DJx593gy3xwcFSXbT+tHqGfOljHow1FWGNaBIIgFfrrp+LkCqFafzOed+CIgDtOM2EBcpf4SeAKhIy8N3fmyBC6QBnuhEUH6cOnuuf2QDJlB7oN1EMg3eA4b5IDUZ0vHqMOJfIEwCkDIMAYswghfYCGK9KtI+SYIryBoJi1ngPgLt6IBCTLV4E0YLKLXP16cBBpxfbUntQE9N7wr.1b+4pwC0AryQTTOrpUE8ZWjdtqN8rJPuMLz6Q3g9wrIx7HJt8s39bXiZDA1BJRKStnZeoNti.xfK2IhbAsWLXLGgytttO11y0c6m1pYqlvFQhz9RRr8y4hyZaumcFzyoxNhnIBNX3rkN5VJLkQ3UIBusLqRQTCHbZ3xWHS3asRZmdUiIesX7PFmZOZJ2WxD7zUrWpoieFvGC0NbJc6VMupUyFrQ1N52RUwOUEvYa681yjiMjjM7bk4G0iop6j.a6JVEKBcjwP0d5sRwqTJiHgIPNpn5zt1jME7tJqPN7LzWqeoqbSamDkWcA5PBCOC9XyorlTox4spJm2xTtFqzKUk5lQZWMIagJ9ppWdUnWd450bIRvOQHouj6rcyqZ1n40MsucnQiVXrzUHjFuvvpVlwUAzgOM5LZb1VQVhPuixMmvKu4Twdm9FEoPhBdeNS9xIT9xZYgRkQn4UsTVAoJ0stdPZqqggr.ZLhAcn9Fr9.IRS3zwA1u4e9v9nUFrWIvu6S+562G859cIRhpAZJc.JNgFKYp2dqtzKgISl1oMvcoIWHES.QZ91N7+uJi+64Cud2wGLK2n6AnB0YSScZk0zVcjQWl6gMm5KTmG9mkqCSRiLSD8.2a1CcyMpHWlsYYUG8+fwdKiwn+nDiweEF6sLFC04VL9ioLF8emhAyREASCIxxCXU2pHM.bvtzjL0zJdBSNq3sNtSl5tpz8Q3ALo+3Ey2ZKfupuIti4a5cXZgOZzHpuLmraf68628WXA8ahoRF+7iIxXFbNAexzngvwAeJvDNb5Q07wplpMgw1UYqTlgTdf13F3IMXaksUZv1YAQQD+Xwa8M8GT2R5dZO.m35KK1.t0JXaOuqBF6tiKJBt71a88URw2CbewX7VCLOYMvr6Zf4GVCL+3Zf4mVCL+bkXT2a9WlJEQlOS.GCNR2f1x5HNANkoOQh9WFIPa+A
    


  • @Natanr I would use Engine.getUptime()

    .. so you need a variable , every time either knob is moved put Engine.getUptime() in it.

    timeSince = Engine.getUptime();

    Run a timer, when it wakes up compare timeSince against the current Engine.getUptime() if greater than some constant you set hide both panels.



  • @Natanr something like this?

    HiseSnippet 1037.3ocsWstZiaDEdjiU10t0K6B8APjeo.aMxJoWfkPbiuTLaShodan+orLVZb7zHMipz3zZBA5iRejJz2fB8+8MH8LyHYIkU10qgHHjLmKy4SemiNmSFGy8HII7XjQi2sLhfL9TyIKYh48lioLzn9HiWXdNNQPhszhNaYDNIg3iLL16akBLZTGod92SOCGfYdjbQHzUbpG46ngTQtzwceKMHXH1m7NZXAqOt6HONqGOfu.vydlNnHr2M3qIWfklUyDYr+.epfGOQfEjDjQ8y39KmLm+qLs8WQSnSCHxCcPSfKRKdHOvWhXoTTu4z.+wYu2IH3VFmyB6oYgOy7bpOck7b13kJEV4dTjOLpsI30oH7b1d3YT.d00v6UlS7hoQhbMRr8IliXPhZFFRAEgk1VTs+rtYONXASzNDeCYXLbXkG1G637ZKWGmCeSqlsZBIhDg0s3Xq2x3S6XchUlqWSD83gQbFbv9.k1Cj9T1C2M5g6A5nTzqwXFIX8ARq9QQRIzcy9jEqbuDfCCXWSYj1dwDHUIKCiub5OS7D1Zior.Ps0rELOAkyRA2vzi1dYw30vEFrfbXql20pYC5LKaEgHwwURE1GZcxIZar.irfm6z+R9HZmHvwBU3sOxQy8YJ0grcBT9He6h4A1hXHTO1D2RlLCGj.1H0pL6ds0DP5GD9JhPt6YdeuhO1XxuchTp5B5gCBlBezZWlvxx1URqtaKs5tNZsgzpcgPSec2HipI8siLqLWrsLo6FXR2xLoPZn5sbkYYbp8gMuqYiM8t1X8PETJoPdjlAAreO7ypzEmcAWPtLMFMuuo0iUMaVk5RCSf7NqPcZzVui1rEgSIwYkEYFB8CK2v0b8MbKNOvSmCJXHmMhQEWFQXqqMLJMwAMjqkhJvTgpc7KRaGOIf5ShQTnq6yLUebfT.NcD2eDcxeeJZqc1sjycO5n+5TzOLpOVfkCERgC.wHRrfJe6M5StEl1pGQzvrOI4FHUBjzpBM3u+eQ7usZf7ued2k4G52EU3d1WeOsxFDIKoTWyyM00dEtmW9KkuGpfDpmx6Bh2eH5gGjZtMKYYrG5i.wtqCwne5iBwtqCwv87HD+OUf3ObHMrp.2eQ.VTd+A4RSoJfZ7RCpkCiYITwxhKU8jrTw1B2WYNlJ7lWMdqUAdked7Di2zUzZYNX1LXhcNXqaN7Ge52GC887EBJ65ywhXJTxXdwhvIPkgGAPBCJjj8gLpI6XnO6HOKYlIDlu5vCvSpxNxyFoJ6joDEh8h4u2S2pPtD3yUR.LwT6B2.VJGNaspAiooSaGTHra5687jTwmCXuZeb2AeNZG743cvmuXG74K2Ae9pcvmudi9H+2B9lEBdn9yDPv3Apd0FFCXXnJSUQh9OTBzvZM
    


  • @ulrik Oh Thanks Ulrik , This Is Exactly What I Tried To Get 🙂 God Bless You Sir



  • @Natanr my pleasure! 🙂


Log in to reply
 

5
Online

603
Users

2.4k
Topics

18.5k
Posts