Simplifying interface challenge



  • Trying to use a combobox to eradicate the needed for extra buttons but I can't quite get there. What's wrong with my code, it compiles fine?

    HiseSnippet 1440.3oc0X0saaaCElxNrMVcYnsqWrqFD5PAbv55ryecCEEUKNwEFKownNKcca.ELRzwDUhTUhNIFEEXuA6UZOH6hcytb.8Mv6PIYapD4+ZRKZU.RB4ge77oye7P0LT3PihDgHiR62KfhL9LbqdbYmZcHLNpwVHCSbsc2Tb5NsEnM6EPhhntHCihOVI2nzBn3m29nMIdDtCczTHzABlCcGlOSNZ1l1+DyyqNwktOyWa0qY2vQvqI7DcAtTDWAEPbdI4H5SHpkU.iLtx1tLoHrkjHoQHiE1T31qUGwI7j0e.KhcnGUMnJpErQISWW34pXrZVTsNLO2lCdmiPvtzbjEnXhE3V3cYtrgyOxRb8XAViPnaOLJLI5UUmdUlc5YnQuERn2MvsbBYAxQRTb6Z3FbIMrMAbA5zJYsnBeUQbMArBt7d9jWRqGBCFhn7FUpbWq0qTY4Grj4RlfiHRZcLIzBb5Usdn0.jGQk0D9ABNLn7sUBu8x5KuUGR.EVuRhZwGP75RKq1zQqYeBXEF+llH9LaqjFDMdHIhyBogOD5LdHIhyAxJSFxJ4.Y0ICY0bfr1jgrVNPVexPVWAQ8Ci6w3Tq1c4NRlfaI3JmgBYnvqry.X2E1Yv2.fd8RlVvCqc4Tu2Cs1P4wTSlJyJ0ocuHHbdvVkf+AVwq3MluAfD61iTjKdI0HddGBIwkyvgkefF2dhPR2iWdYyWaVx7MlmUR614IJci7ng4IUUVIbBvJy65eHMbfAHccP1U1zW73Se0qt3j3RzVnf2fyj6EP4iKoFk5Ggz6hojBTuLN4dozj6XCNhAovKhSL9nX9pWd0kHIHi6fWYs6k8438fe09aT+6OTKdbhN0UzMSUTKOlKMrI3lR0VR1z3z1ug23rZ6x5QiiES330S4HDren.NBJlgWAqBlNK+9RazO2XKEEghdo1WvlGPCkLk6zXK5wvgQIUPKg2hF8RoH.NWYXhDryYcAMIbpWrJMwGvnm.DnJ5zgp7eZa2a3.6CsOg4J6LbhJuxtCkcTGsS99UaiqposEmpC+TcyeO8AY0k04z0e7b6.RHnFM8o8Rb7fXYihnyynoEYLNZ81GMMSve8NQKyw4VVDmTF+BXn.mxjXDSR8GzRRoqTnP+JJLilcE0zHTxzuizekY1fdQoe+mmG8+59nKB8Wc7Ve6KU52+NExi98Kcgn+ZYnu86O5Wn++lavS5zuize8wR+K4fm+N+X++axw9Wa50w03+804+YKnZ+6mi+O11m.vwFWEFHomBhv3cpuWLIgZ9eGtEzJj49gLB+HOpYKxIlsdUW3c17oDtqv2rV2HI7m3BalnfAmQ2vUwYXmr1U310i.sETEtNRHbSDngYkzOG+Lxwz5hP+3STPmuKc3tBCvpeAB0slRE.ckjoScU237HlLiS78xsJlU5dCbSlzoS97sPN7EN788MeSui1R3sa2l5HGQ1Ev0+kOvWH6pCuwLyOvi93AT4ySmvRMS0IbqYDZKpGIiA7YYh5QO2Nm6UaTL6aVwYqW0ob62IGInHt0EIxs3rY9mhIeoDRljmmjRcl7zoRr5gzW0kxczlzxV8AIZLxyX+m1pD71CRv05ybG5Qfhz2v8oPAuV83N59nV9BgrCieT1Oywsr2QHB1lq5vyUeSRJEMPoyZa8pJWakowbM4qt2kyXzb3JmR7VgYLd6Kh8pCceJ+6G40JSX7vXqOAX7MwwEer9j43nahiKN9oCguNFZX6i.59TQWITIZWhLjoZX5Ic8aAcv4PApxgNJUetCiBpOLQx3JpwwEwnb23A8gmTgUUiMREVcfvOH5vm3DJdgSxWIPUNYw3Yf2ad7GItDdW0Xqgec.kswm4xdgiipAguErN4iXk4FwpyMh0laDqO2H1XtQb+4Fw2OADpuO9O1ENHKIdGln41ImOYL7LO3JB+Oiagku
    
    


  • Hi Tod,

    Please name your controls in a way that lets me know what they are without having to look up each one in the widget list. Lfo1 doesn't tell me it's a combo box, call it something like cmbLfo1 🙂

    I'm not 100% sure what you're trying to achieve so if you could explain your goal I might be able to help you reach it more quickly. Your code currently is taking the value of the combo box (1-7) and using it to set the visible property of table1, the visible property can only be 0 or 1 so that's not going to work.



  • @d-healey

    Lfo1 combobox is connected to lfo wavetype in the container FX.
    I want the combobox to change the panel display inside of the "viewbox" panel as well as the lfo wavetype.

    In this case combobox value 6 corresponds with lfo custom wavetype and therefore I would like the table to become visible. I hope this makes sense.



  • @Tod-Slaughter The first problem then is that you can't have a control connected via parameter ID and use the control's callback in the script, it's one or the other. So you'll need to add code in the combo box callback to change the shape type. Then you'll be able to tackle the shape display.



  • @d-healey said in Simplifying interface challenge:

    @Tod-Slaughter The first problem then is that you can't have a control connected via parameter ID and use the control's callback in the script, it's one or the other. So you'll need to add code in the combo box callback to change the shape type. Then you'll be able to tackle the shape display.

    Aha, now it begins to make more sense. I shall persevere. Thanks as always 😄


 

1
Online

383
Users

1.2k
Topics

8.8k
Posts