Forum

    • Register
    • Login
    • Search
    • Categories

    Effect Slot: Script FX

    General Questions
    4
    13
    113
    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.
    • Lindon
      Lindon last edited by

      Hi,

      cant find the answer searching in the forum.

      So I'm using (several) Effect Slots, and I'd like to be able to use Script FX, I seem to be able to insert a ScriptFX in exactly the same way as any other FX, but (of course) its empty - how do I load my newly minted ScriptFX with my (massively complicated) script node "model"?

      HISE Development for hire.
      www.channelrobot.com

      ustk Natan 2 Replies Last reply Reply Quote 0
      • ustk
        ustk @Lindon last edited by

        @Lindon You need to create it first (yeah I know, that one was easy 😛 ) and then Menu/Edit/Create Base64 encoded state
        Then you can recall the state of the scriptFX in the slot using Effect.restoreState(String base64State)

        I can't help pressing F5 in the forum...

        Lindon 1 Reply Last reply Reply Quote 0
        • Natan
          Natan @Lindon last edited by

          @Lindon Base64

          HiseSnippet 2527.3oc6ZstbaiaElJNLMVoZ2rs6C.p9Sk20qBokuDkzsI5pirsrUjjkkcmNIPjfRvhjflDTVRY1Y5O5yPmouD8UnOK8O826aPK.uXQIKeoJwa2KVSxXgCN3fCN36b.7mQMahBxwgXKDa4lirPBw90hMFYR6UnGDaJTonPrOSrJzghrA9hxOxB53fTEhEaos4Bhs7CE7978uJOTGZpflHRPnEAqf1CafoSj99WuKVWuLTE0DaDQ60ecEEhYAhNwk4OKIJIXAU5C6h1GxU6AhBwdTIULkX2fBoHGgXOLOQcTidjyM80uE1A2QGwaHKzfYHewkI5pbOlKUnPOrtZsv0si.yJ0lDEVxOJ7khUwp3KjOIZ7TuN.SFQz3QrGbctm7B5dOHh68Pe26KDanXisnS5g6a+l.oWg242ovCV5ohO6q.M6gc.r+AA4gNnMWGfFZQroHUfC26eQh3IhurbZfCRGoPAzdHfAQ0UGsJf0wZoA7k527GKXiXZegMLUHpglfoVlzfZbvi2vcn1Xyt.MahgWaEcrUGBzVk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20T5k3mWb5UDoCGcOaB+RhPuqNE7VRpmGUBexRBk+ANK7Gm754c7Pcz.jcm6yF+QL2d244iKJ0dxRSmPdIJ1tqo2Kw876cM768SG18dxmJ18h9Tk9+HSe9D7wTmo5Uxp0mOkHYAuXT.ySuWS6e+pEiuPweovWn3hxWn50LgeDTycg8WzEziu0PkIDT9WJ85QWz38lu9brJsG2I96r18P3t83QpX+AVKqPnZEUO9+XWG3cS9UDEtfyKd2+Jwi7LzbXN7ohU4+5oP5zO6PtMB5fS4ZT1C4LDZ5foihRq5+CuEQoa8aQ715tegXMLUo2782GLG+k+LGui82fW1YBQ+iFl3rOTrb6OsOiy4U7JVrK6KOVzm+IO23QdMl1QV5t1QBdzurThHWV0yc9sQAvAxi5a0IDiPh9C2CKBYWW0raTQGgn6wFr9TpYOZFYe+q7SGhnTYaDZLhgflZFlMhrzsKhLGjQchKk4qUgraGvKuruqQChqsBhALLMQ5N7z5GvKX42VJ7uDRCjopWi+C6SPmx71wB5TNrye1LGFPEax6T7OxkCgdrmDVr0z6kYurXUdavEmwJJJkVh+WIB+NEEdF12HKHL+wr1BLlLKvXVeAFyFKvX1bAFyVKvXd90NF9iTOmKkX3W8kInVIu65DKVI+a+yygE9uk+7c5.
          
          
          1 Reply Last reply Reply Quote 0
          • Lindon
            Lindon @ustk last edited by Lindon

            @ustk @Natan - thank you both - you got there just ahead of me...I guess now I just need to write the base64 encoded string to some file in some folder and load it as required.

            HISE Development for hire.
            www.channelrobot.com

            ustk 1 Reply Last reply Reply Quote 0
            • ustk
              ustk @Lindon last edited by

              @Lindon Nope, just paste the Base64 string in a variable and recall from there

              I can't help pressing F5 in the forum...

              Lindon 1 Reply Last reply Reply Quote 0
              • Lindon
                Lindon @ustk last edited by Lindon

                @ustk -err, thats a bit messy isnt it?

                I have to get the base64 string then paste it into my code every time I want to include it in a slot based effect chain. Or am I not understanding what you say?

                HISE Development for hire.
                www.channelrobot.com

                ustk 1 Reply Last reply Reply Quote 0
                • ustk
                  ustk @Lindon last edited by

                  @Lindon Once you've made you scriptFX and you get the Base64, you have it forever.
                  So put it in a variable, and when you need to change a slot, in the case of a scriptFX, load an empty one, and recall its state from the string Base64 variable.

                  I can't help pressing F5 in the forum...

                  Lindon 1 Reply Last reply Reply Quote 0
                  • Lindon
                    Lindon @ustk last edited by

                    @ustk yes I understand what you are suggesting.... I guess I was looking to do it more elegantly.. YMMV.

                    HISE Development for hire.
                    www.channelrobot.com

                    ustk 1 Reply Last reply Reply Quote 0
                    • ustk
                      ustk @Lindon last edited by

                      @Lindon This is the elegant way 🙂

                      I can't help pressing F5 in the forum...

                      ustk Lindon 2 Replies Last reply Reply Quote 0
                      • ustk
                        ustk @ustk last edited by ustk

                        @Lindon It is not much different from loading any other fx in a slot. Except that a scriptFX being empty by default, you just need another step to load its state

                        I can't help pressing F5 in the forum...

                        1 Reply Last reply Reply Quote 0
                        • Lindon
                          Lindon @ustk last edited by

                          @ustk said in Effect Slot: Script FX:

                          @Lindon This is the elegant way 🙂

                          as I said YMMV.

                          HISE Development for hire.
                          www.channelrobot.com

                          1 Reply Last reply Reply Quote 0
                          • d.healey
                            d.healey last edited by d.healey

                            Couldn't you save the entire effect as as an external script and then use the connect to external script option to include it in future projects?

                            Edit: Never mind, just realised this is about scriptnode

                            Libre Wave - Freedom respecting instruments and effects
                            My Patreon - HISE tutorials
                            YouTube Channel - Public HISE tutorials

                            1 Reply Last reply Reply Quote 0
                            • Natan
                              Natan last edited by Natan

                              @Lindon Glad to help 👏
                              Just Do all your changes, Then Export as Base64,
                              It is also the base Way to store Table Shapes To recall later On Your UI, Not Just Slot FX.

                              In Some cases I Experienced Some Random Clicks When I Change By Using a combo box.

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

                              11
                              Online

                              1.1k
                              Users

                              7.0k
                              Topics

                              64.7k
                              Posts