HISE Logo Forum
    • Categories
    • Register
    • Login

    Move Objects between ScriptProcessors

    Scheduled Pinned Locked Moved Scripting
    3 Posts 2 Posters 166 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.
    • ulrikU
      ulrik
      last edited by ulrik

      I need to get objects from the Interface processor to the NoteCallbacks processor.

      Here's the hierarchy:
      Skärmavbild 2022-04-16 kl. 10.53.48.png

      the objects are in this format:

      obj = {"ons": [1,2,3...], "offs": [1.2.3...]};
      

      There's no problem to store them in a panel on the Interface script processor like this:

      Panels.setValue(obj);
      

      but it doesn't work to store them in a panel like this:

      NoteCallbacks.setAtttribute(NoteCallbacks.OnAndOffsPnl, obj);
      
      

      And it's not possible to transfer them by linking 2 panels together in the Property Editor

      And it's impossible to read them from the NoteCallback script processor
      Any tips how to accomplish this is appreciated!

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

      Christoph HartC 1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart @ulrik
        last edited by

        @ulrik use the global keyword.

        ulrikU 1 Reply Last reply Reply Quote 1
        • ulrikU
          ulrik @Christoph Hart
          last edited by

          @Christoph-Hart Yes of course, how could I forget that?
          Too many eastern drinks maybe 🤪
          Thank you Christoph and happy holidays!

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

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

          52

          Online

          1.7k

          Users

          11.7k

          Topics

          101.8k

          Posts