I Need A Little Help Here



  • Hey Folks

    Here is A Script With 12 Buttons,
    To trigger A Knob In Script node Which Bypasses 12 Nodes.

    Buttons work as radio group, and each One Changes The Value on That Knob in ScriptFX Knob.
    It Works Just Okey, But Once I Hit Compile F5, The Knob In Scriptnode Unbypasses All Nodes.

    Any Help Is Much Appreciated

    HiseSnippet 2180.3oc6b8zaiabEens4l0ZW25ftEHGxABif.IDWuhx+GNarrsrCD5JYAK4scQvhMzjijGXJNDjT6tpFFneC54lKI26kdsGJP9BzS8KP+BTfseBReyLjhTRTNxTPJANj6gUyedu486M+dCeyrC2ZNTcrqK0AIsXit1Xjzikq20x6xitTiXgJWBI8P4yNnZoSqfNrqslqK1.IIM+WxZUZwEP7m2u+gZlZV53vpPnWPI53mSZS7BqsVweOwz7DMCbCR6H8dihk0oVGQMoc.KYd47HaM8qzZgqpw51bxHoGbrAwi5T2SyC6hjV3PpQ25WReqkn+uf3RtvDyJnhpCJRT8ITSClEypEczkDSiZAH1EAZoVH9mWf+mHWgXP5UeneXYdCJgRD0eHM2sYdpQMu7iu4IEw7VPXdenbccGhsWXKLa6Qxks7vNM0fofnlknun49uef7QTnGVdq0V6J7INPgdRjcq74WUYy74ys2RYfoAWOk2n4nvlhwNtJOSgSHVqE163lMw5dYWwuoUXBD9mmBOJUdoxgm2nwoUqqj0Bl7LTbzrLnsUZRcTrnJNXMWpUtnCzEdVmI5yyT9p.yDFsinssoVPgrqbXGOOpk5J4VcoLJw+baBVHoBtdREbijJ3lIUvsRpfamTA2IoBtaRETMehkLwbGUf77Jed9HDGZ3VZyOvn5AMN.BJDqk5GivZjXYBASJM6Xo6QnVJTdvP4FLaxgZlUOvfVEBVL6fyk45L7AyjpqY5Gc8BVKP3SEMHPkUEDbmEBpUKjauL9HzkZhWy1g.sDQnb6AsJTHooR12HTzyTTywq65.b0KH8qhH7qVyE6w+UVU1ZA2de0uTypE1HquIcSnCh82YtYuLYhehP3PVIGaz7cKGoYZdA7JhrC3tDqHwc3MN3vCOtjR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qB8PPTNClcY6knhazSbk4uqo4n0F6w3TPfmz7Qx8.PKLbLn9XAhdjHXnkJpOn8H.ZN30Zw.0OEvHHrRZtRcszZSzEclcPt9d2HaKr+339fqzb9kfkclmA0GKeFNXCgnWL31Up04BXy1L0fFPtes74t3wTzvU.an4zB6wWSJbNgYTAk.MT15Mv3HL9JDqAT7K+9JZuanA64z2hcF3T3e42ets8P0BzdOrMKvmU227WYO+i8qeE9sh4aVseg9+7e05u+aKxv4C392ggGZ7MYDZHSt3eoXblLjm7vlLz2ebS9G59s09Mk926KNl75soTuKgULFzt2nHpeZdg6Iz74Ro4oz7QSyWOklmRyu+Sy2HklmRyu+Sy2LklmRyu+Sy2JklmRyu+Sy2NklmRyu+Sy2IklmRyu+Sy2MklmRyumSykkaolOkmmxy+E.OWMkmmxy+E.O+mY+CgdWY2gwEo77TddTddeNdoHn3AB5PDB0XAEzmFw732bo9Lrfad2PJheyesv76NE+91DVDf.K5org+MuomQVVbCBC34fDb+tCq1xFP7D65ycpcu6QV.47NO+LBJ0+Y+9meDyE+u8iN+Dzy3cCnQgxBSaT998GFkue+YLJWepOWVLl4xhyXTtwzFkOLFT9vYMJ2bZixkiAkKOqQ4VSaT9jXP4Sl0nb6oMJ+nXP4GMqQ4NSaT9wwfxOdVixcm1nTIFTpLSQo3.WlxvbkXf4JybXN0y94ShAlexLGlS8ze9zhwk45TBlI4qaalbo9aqo6Pest36Tfk08C40.Itaw+ubjEgz+gxJ89j+jkyuVdTahA4055rkW9cpHT7xTHAxrdBjYiDHylIPlsRfLam.Y14Vkg8QJdPGOZawWLDTQsi4jKIoi4eEib9N5+WdjFwB
    


  • Okey, Here is the Issue, The Knob 1 In The Above Example, Wont Update After Hitting Compile,
    But It Works Just Okey After That!!
    Why This?

    Content.makeFrontInterface(600, 500);
    const var Knob1 = Content.getComponent("Knob1");
    
    
    
    
    
    
    //// MY BUTTONS (named random for no reason)
    const var btnRandom = [Content.getComponent("Button1"),
                           Content.getComponent("Button2"),
                           Content.getComponent("Button3"),
                           Content.getComponent("Button4"),
                           Content.getComponent("Button5"),
                           Content.getComponent("Button6"),
                           Content.getComponent("Button7"),
                           Content.getComponent("Button8"),
                           Content.getComponent("Button9"),
                           Content.getComponent("Button10"),
                           Content.getComponent("Button11"),
                           Content.getComponent("Button12")];
    
    
                           
     
                           
    
    //// NATANS RANDOM BUTTON
    
    inline function onRandITControl(component, value)
    {
    
        local randomValue = Math.randInt(0, 12);
        Console.print(randomValue);   
    
        if (value == 1)
        {
           btnRandom[randomValue].setValue(1);
           btnRandom[randomValue].changed();
        }      
    
        
    };
    
    Content.getComponent("RandIT").setControlCallback(onRandITControl);
    
    //// TABBED INTERFACE SCRIPT
    
    const var NUM_TABS = 12;
    
    for (i = 0; i < NUM_TABS; i++)
    {
        btnRandom[i].setControlCallback(changeTab);
    }
    
    //Tab button callback function
    inline function changeTab(component, value)
    {
        //Get index of clicked button
        local idx = btnRandom.indexOf(component);
        
        //Toggle buttons
        for (i = 0; i < btnRandom.length; i++)
        {
            if (i == idx)
            {
                btnRandom[i].setValue(1);
                Knob1.setValue(i);
    
    
            }else{
                btnRandom[i].setValue(0);
            }
        }
    
    }
    
    HiseSnippet 1474.3ocsX8taaaCDmJMpswqoncXeaegnenvFsK0x4uEYAKwNNEFs1wH1onCEEszRT1DQlzPhtKdAAXOJ8MYOD6EYuAaGojsXSrSikQU9PL4c+N9iGu6zI1LT3RihDgHqUZOZ.EY8.6Vi3xdU5QXbTsCQV229jCZb3w0QkGMfDEQ8PVV24UJoVqrLR+7u+VYR.g6RSmBgdqf4ReCqOSlNay8eMKH3HhGsMqug1areMWAuhHPLDXxcrKhFPbOizk1fnTaIaj0cq5wjhvVRhjFgrVtrvaTqdh+fGq+aYQrNAT0.GTKvPwSejHvSwX0rnJ8XAdMGuiiPfUZlt+uS79+mrqy7XSlO0O7Hs.bJBS+g0R2D8bLoWwaO8rLn2xwz6w1sbCYCjoRTb6GrqwkzPeBbDXRqXcQK8O2yth.zfKWqO4L5Qg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xOM2V5kyxOMXvszRF0NlgiZ9Mkyr7TyuoJMKW0UL0C9lEW.6Xa8TnxxH0O9YvDQxQpdDtqVATelmW.soHho5Aw3Fd96HIcPK1eBpZa6rVQPSt4K16SLNCd59QC88Ymqu4FeVP+HIvmZ8IcA3+n8oQTrG0mLLPhiNCrCz0KzyZagVez0uziGYWW3MLfH+56iQcITIBTj07hOTWtAG1DiLujpuKWRysktO1tIS51a57coovWnd+2a9lbkWqZW02m5JSI6x1G8trd+V29qeCchXnjw6BexZnJXwtwv9sDCCco.S3bnOdUP5RpWeFOtnZrxyzhx8zC9O3IQniZrUhPmwBg.S2PwGcie+q5R0tudFfSb8cKthcc0X7jW7ZaWTGd6w9nqqxU7KNHzzwTJCXVOCX1HCX1LCX1JCX1NCX14FwnZ03fgRQ+3zDXhlU0M.YYUU2KhNhD8+.oQi0eA
    


  • How Dummy 😕 I Am, It Was Because Of SaveINPresets



  • Okey Im Doing Very Good Here, Just Need To Show The Names That I Stored in Button Names:
    But How?

    const var ButtonNames = ["Btn0","Btn1","Btn2","Btn3","Btn4","Btn5","Btn6","Btn7","Btn8","Btn9","Btn10","Btn11"];
    
    //Tab button callback function
    inline function changeTab(component, value)
    {
        //Get index of clicked button
        local idx = btnRandom.indexOf(component);
        
        //Toggle buttons
        for (i = 0; i < btnRandom.length; i++)
        {
            if (i == idx)
            {
                btnRandom[i].setValue(1);
                Knob1.setValue(i);
                Knob1.changed();
    
                Label1.set("text",idx);  //It Shows The Buttton Numbers, 
                 //I Want It To Show The ButtonNames 
                
            }else{
                btnRandom[i].setValue(0);
            }
        }
    
    }
    


  • Haha Done Right 🙂

                Label1.set("text",ButtonNames[i]);
    


  • About 6 hrs ago Question
    Next Question
    Next Question
    Next Question
    Finally Answer (by himself)
    What we learned today?
    " Do it yourself "... 😉



  • @Tania-Ghosh ​:) Yeah Why Waiting For Others?



  • @Natan Yeah.. I Agree. 👍



  • Scriptnode, I Really Tired Of You 😞 😕
    What's Up Here?

    Can anyone Bring Some Light Over This?

    Everything Works, Expect Once I Hit Compile, The Knob In ScriptFX Unbypasses Everything Instead Of Current One.!!!

    HiseSnippet 2566.3oc6b8zaaibEmzNLqsRb2rcyBrGVfRHrHUdWsNhx+Gtash+WfvZYKXIm1ffffwTikGXJRARJmnFXf8aPO2doe.1K8ZOTfEnm6o9EneDRuWfsu2LjhjRTt1TUpa7Ra.AMy79+7ad7MCIUUaKcpiiksj7r061lJIeekZcMcOa6yHLSox6HIOixQO4fcNrhzVcaSbbnMjjkm9o3nxydGI9euaysHFDScZPWRROyhoS2m0h4Fza0ReCyvXORCZcVqPTuTox5VlaaYX0ArjoUJH0lneNoI8.BR1TJRx2c2FLWK6ZtDWpij7c1xpQ2ZmY8ZSA8Oi4vNwfhMzjpABRz8dVFMPKF+tz1mwLZT02icj.oTMv+mV3+OToBqAqW+AwgGvGPMfivwC4otJySKr4UHVySKNySNj4cGg48QJ0zsYscCFAss6oT1zkZeJAlBBaVBZkl5qtmx1V.EltKzhbNcOanQONxsRgB4UWtPg42XtL3+vTgiq5EDaUbZV8qU4HhEZRc28zSo5t4xh8mEIOJoTamgQMLTeL7MlVmnAj6aX.Caa0pskIzHWV9n8ww9jSnFCmEwv8wyQDyFkqOTdDCm02yC++ig+Tq7b0sNtd8COnlZNS.K1P0F3vpk5oV1plVp1Thik47QiZU5tUGWWnInVU0WDulEj.la94xnNr+tJVKlbVWL4rtTxYc4jy5JIm0USNqqkbVWO4rpUXD3cDvSZ.f5k70ACk8vfbASX9YDl+h4xjcKsr4ytUQ7iEwOVB+X4r4wgVA+9p3GqgertnWvUgFZb9.0iZ+Zo6cMuv5YDiNTTyExqkuX9EyuT9kyuR9UyuV90yqAcp8xMFpntBsvW1eDeQN62Qsw3Ayz.RfodZGScWlkopkoHsAFMssLxo6GJyCVGXUym4sbMXXoSL7RX3atUHPtQrKH8aNHsqVw42Hi2TiikAcg11LXjPLMO5FY3zvNUM2EBA80pZyy66s9NSurNuHDyubAGpK+a4zlOH7NDZ0OiX1j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9OJ7datX3+l+7nR6PMHQdkP71xXuc4TJleUfDgspVFD69egRl9+QuCBQ9U84peqW3+917dyaoyOWgGxeexf4Ph2eL3GnTk7iA.wj3snYRniVDcaqWoKd4ivklyv6A7aS9OrWyB6oGZq160JFy0UPpEqA6U55XMEeEDehmmhIfmES.OKk.dVNA7rRB3Y0DvyZWIO3KB8S53Z0Rf+gNptK+JLxx6xeSo4KEj9OONMS5C
    

    Edit:
    I Also Connect This To A simple Gain, Simple Gain Works Just Fine, But The Switcher On ScriptFX acts Crazy!!!!


Log in to reply
 

14
Online

1.2k
Users

3.8k
Topics

33.7k
Posts