Forum
    • Categories
    • Register
    • Login

    Script Processor component state does not load with preset.

    Scheduled Pinned Locked Moved General Questions
    13 Posts 2 Posters 1.8k 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.
    • David HealeyD
      David Healey @CyberGen
      last edited by

      @CyberGen said in Script Processor component state does not load with preset.:

      don't I loose the other parts of the controlCallback for that knob in the UI?

      Not sure what you mean.

      Free HISE Bootcamp Full Course for beginners.
      YouTube Channel - Public HISE tutorials
      My Patreon - HISE tutorials

      CyberGenC 1 Reply Last reply Reply Quote 0
      • CyberGenC
        CyberGen @David Healey
        last edited by

        @d-healey sorry, so when I link a control from the property editor, It takes over the controlCallback and only operates the linked component but does not run the controlCallback. Is there any other way to link them without loosing the controllCallback?

        David HealeyD 1 Reply Last reply Reply Quote 0
        • David HealeyD
          David Healey @CyberGen
          last edited by

          @CyberGen When I said linked, I didn't necessarily mean through the property editor. You can do it through your control callback using setAttribute

          Free HISE Bootcamp Full Course for beginners.
          YouTube Channel - Public HISE tutorials
          My Patreon - HISE tutorials

          CyberGenC 1 Reply Last reply Reply Quote 0
          • CyberGenC
            CyberGen @David Healey
            last edited by

            @d-healey yeah, that is the way I have all the controls linked. But that does not seem to automatically recall the state of the non-UI script for me. Even recalling all the controllCallbacks post load only works inside HISE but not in the exported app.

            David HealeyD 1 Reply Last reply Reply Quote 0
            • David HealeyD
              David Healey @CyberGen
              last edited by David Healey

              @CyberGen Maybe it's the order of your scripts, put the secondary script below the Interface script.

              @CyberGen said in Script Processor component state does not load with preset.:

              that does not seem to automatically recall the state of the non-UI script for me

              It won't. It will recall the state of the controls on the UI - that is all a preset does - and the UI controls will set the secondary script's controls.

              Free HISE Bootcamp Full Course for beginners.
              YouTube Channel - Public HISE tutorials
              My Patreon - HISE tutorials

              CyberGenC 2 Replies Last reply Reply Quote 0
              • CyberGenC
                CyberGen @David Healey
                last edited by

                @d-healey said in Script Processor component state does not load with preset.:

                Maybe it's the order of your scripts, put the secondary script below the Interface scrip

                I've thought about that, but I believe that is not an option for me. I've tried that in the past (not because of this issue) and nothing works. That processor handles arpeggiator and glide functionality.

                David HealeyD 1 Reply Last reply Reply Quote 0
                • David HealeyD
                  David Healey @CyberGen
                  last edited by

                  @CyberGen said in Script Processor component state does not load with preset.:

                  I've thought about that, but I believe that is not an option for me. I've tried that in the past (not because of this issue) and nothing works. That processor handles arpeggiator and glide functionality.

                  I'd need to see an example where it's necessary to put the script before the Interface script, sounds unusual to me.

                  Free HISE Bootcamp Full Course for beginners.
                  YouTube Channel - Public HISE tutorials
                  My Patreon - HISE tutorials

                  CyberGenC 1 Reply Last reply Reply Quote 0
                  • CyberGenC
                    CyberGen @David Healey
                    last edited by

                    @d-healey Let me experiment moving things around a bit. Maybe a can split things up. I'll get back to you. I do think the solution could be there.

                    1 Reply Last reply Reply Quote 0
                    • CyberGenC
                      CyberGen @David Healey
                      last edited by

                      @d-healey said in Script Processor component state does not load with preset.:

                      Maybe it's the order of your scripts, put the secondary script below the Interface script.

                      So, I was able to move the glide/arp script below the interface one. Unfortunately, the problem persists. I can't think of a reason why it would work inside of HISE and not in the compiled version. Any other suggestions?

                      David HealeyD 1 Reply Last reply Reply Quote 0
                      • David HealeyD
                        David Healey @CyberGen
                        last edited by

                        @CyberGen Can you make a minimal example that demonstrates the issue with the scripts in those positions?

                        Free HISE Bootcamp Full Course for beginners.
                        YouTube Channel - Public HISE tutorials
                        My Patreon - HISE tutorials

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

                        35

                        Online

                        2.1k

                        Users

                        13.0k

                        Topics

                        113.0k

                        Posts