HISE Logo Forum
    • Categories
    • Register
    • Login

    Create Script Reference

    Scheduled Pinned Locked Moved General Questions
    3 Posts 2 Posters 172 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • CasmatC
      Casmat
      last edited by

      Hey!

      I have this button in a separate script and I'd like to create a script definition for that button in my interface so I can control the button. I was able to get the parameter by creating a script def for the script definition itself and doing this:

      script.parameter;
      

      But this is just the value of the parameter, it doesnt allow me to change the value of that parameter

      Thanks!

      i make music

      ulrikU 1 Reply Last reply Reply Quote 0
      • ulrikU
        ulrik @Casmat
        last edited by

        @Casmat you can do it at least 2 ways
        if you're going to change the "other script button" only with one another button, you can link the "controlling button" to it in the Property Editor, like this:
        You have to make a reference to the "other script processor" and then choose it in "processorID" and chose the "parameterId" for that button

        Skärmavbild 2023-08-27 kl. 09.01.32.png

        Skärmavbild 2023-08-27 kl. 09.01.44.png

        or you can use this as a reference if you want to be able to control it in several places in you script

        const var AnotherProcessor = Synth.getMidiProcessor("Another Processor");
        AnotherProcessor.setAttribute(AnotherProcessor.button, value);
        
        HiseSnippet 907.3oc0V0saSCCE1tqFQKv.D7.D0qBRiQKLFHgPzstNnB1ZnYLfqFtItKVKwtJwAnBgDOf7vva.bb9YIcDMJE3B5EQ87q+7wemisUnzgEEICQ3FGLaJCguLwdlP40yixEnA6fvqR1iFoXgFop1d1TZTDyEgwq7TsBbi5njee6IaS8oBGVgJD5PI2g8Bd.WUn0p6y4996RcYGvCJ48FcG3HE8j9xX.OqPZilRcNgdLaep1sZDD9B8c4JYnshpXQHb8sktyr8jePj5+g7H9XelVnCxFRTp5ck9tZDq+OpmG220JeeGgfrXUTEVIsJbSxdbW9o5KpFWKwfQQDkqG3ZmG75rjvqVI3UOEdWmX6DxmpJrnw1kHCDvA0DJbDTFVo9hpYUizSBdHTqGPOgsaHHbZDla1t8ZFvma8nlMgigHkw6ovgN3Snze6XkRJLdrQdBNlo5IClJEffYq47pkNC24NMN3Y8MFBeFYX2az.qCLrFMrWea6giJk+sDRkGK7zMBrDI7O8BL2QfYqLWKp8kWnrk30a81lbgOWvLlDKbTb.zZJUI3kIX5jC+0.f3GytUyO0rwYgy5QL0VJUHebrhY9SVGmjw7D7nleF.zBUgz4MSUOpu+XfmaVMNgrVZmruTwFJLSvZyO2z3rllLoRaY4xmEVoYcaX34EnoHNXLKrbkR6HvGmmvegEiv6jVhJ4nTLPvUCmxxjKZI5TQKAJqFCMG3LDBtpRZMVMq0HsHh3PRtJYtBKJYSTdHE5UC1gpn4oCxLrZSYgJtdSg2g8dXHVZmWCxNrnSTxoI9lc7Ba7Edw+X44cyJK7Atqx6TEceWWOF+Xuh4le4kcQK5nfaP9otkpFIf+JIsUb7Y6uotto.1rUpsVqY.yGfoC++vFI+sXi+wLvKRF+Oi5U+Wup.mif0K1r7+TAQBtYS5F6SUyecm9N9LCvgvbjH8cGhHtZV42.7abGX6JuCrxx8BB2qSr3JGupwasJvq950+w3M6EEWgzexDlip.r0I69lk84C+FPYjLVwEGuGEtESSD1ONvFdfkCCPhPv70MJ3ZZJcpb6bNhMS3lH7c3WlwNZYblwN4FQATmP4QNoMB52rbwDM.lDIOcqA7FRP1nSdC.gzd81n.3B9ibbzkhaCXu5Xt6RDy8VhX1XIh49KQLatDw7fkHlGdtwnea0VwJYPZaBnvpexfHLtufBrrDFI5G.+L.YQC
        

        Hise Develop branch
        MacOs 15.3.1, Xcode 16.2
        http://musikboden.se

        CasmatC 1 Reply Last reply Reply Quote 1
        • CasmatC
          Casmat @ulrik
          last edited by

          @ulrik ahh thanks! The code was exactly what I was looking for! Thanks!

          i make music

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          19

          Online

          1.7k

          Users

          11.8k

          Topics

          102.5k

          Posts