• Products
    • Isadora
    • Get It
    • ADD-ONS
    • IzzyCast
    • Get It
  • Forum
  • Help
  • Werkstatt
  • Newsletter
  • Impressum
  • Dsgvo
  • Press
  • Isadora
  • Get It
  • ADD-ONS
  • IzzyCast
  • Get It
  • Press
  • Dsgvo
  • Impressum

Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags

    Send multiple values between User Actors with a single patch cord!

    How To... ?
    5
    14
    4608
    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.
    • DusX
      DusX Tech Staff last edited by DusX

      I just put together a quick how to.

      Hopefully you all find it as useful as I am. 

      http://dusxproductions.com/blo...

      NEW Troikatronix official tutorial.

      https://support.troikatronix.c...

      AND a quick code update to the Ungrouping, that allows handling more complex JSON (maybe from the web or my Kinect2share utility)

      function debug(printString){
          if (DebugMode){
              print(printString + "\n");  
          }
      }
      

      function main()
      {
      DebugMode = false; //example usage: debug("string" + var + "\n");

      // ensure input is not EMPTY
      if (arguments[0].length < 1){
          debug("arg0 length: " + arguments[0].length + "\n");
          return array;
      }
      var parsed = JSON.parse(arguments[0]);
      var array = [];
      
      for (elem in parsed ) {
          if (typeof parsed[elem] == 'object') {
              parsed[elem] = JSON.stringify(parsed[elem])
          }
         array .push(parsed[elem]);
      }
      array.unshift(array.length); // make the first output value 
                                  //a count of additional outputs needed
      return array;
      

      }

      It may be also useful to some to know that the Ungrouping Handles arrays such as [0,1,2,3,4] just the same as Json objects like {"0":0,"1":1,"2":2,"3":3,"4":4}
      These 2 structures break down the same in the Ungroup, supplying 5 outputs with values 0 thru 4

      Troikatronix Technical Support

      • New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
      • My Add-ons: https://troikatronix.com/add-ons/?u=dusx
      • Profession Services: https://support.troikatronix.com/support/solutions/articles/13000109444-professional-services

      Running: Win 11 64bit, i7, M.2 PCIe SSD's, 32gb DDR4, nVidia GTX 4070 | located in Ontario Canada.

      Fred 1 Reply Last reply Reply Quote 2
      • Skulpture
        Skulpture Izzy Guru last edited by

        Looks really interesting. I still don't really understand Javascript properly. I need to spend more time with it.

        Graham Thorne | www.grahamthorne.co.uk
        RIG 1: Custom-built PC: Windows 11. Ryzen 7 7700X, RTX3080, 32G DDR5 RAM. 2 x m.2.
        RIG 2: Laptop Dell G15: Windows 11, Intel i9 12th Gen. RTX3070ti, 16G RAM (DDR5), 2 x NVME M.2 SSD.
        RIG 3: Apple Laptop: rMBP i7, 8gig RAM 256 SSD, HD, OS X 10.12.12

        1 Reply Last reply Reply Quote 0
        • DusX
          DusX Tech Staff last edited by

          Well if you are starting a big project. These 2 small scripts can save you hours of patching.. no need to learn any thing to gain here ;)

          Troikatronix Technical Support

          • New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
          • My Add-ons: https://troikatronix.com/add-ons/?u=dusx
          • Profession Services: https://support.troikatronix.com/support/solutions/articles/13000109444-professional-services

          Running: Win 11 64bit, i7, M.2 PCIe SSD's, 32gb DDR4, nVidia GTX 4070 | located in Ontario Canada.

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

            umbilical!

            John Collingswood
            taikabox.com
            2019 MBPT 2.6GHZ i7 OSX15.3.2 16GB
            plus an old iMac and assorted Mac Minis for installations

            1 Reply Last reply Reply Quote 1
            • DusX
              DusX Tech Staff last edited by

              I have included these 2 scripts in a Javascript skeleton actor that I use now to start all JS based elements of my patches. . JS is proving very useful for video analysis (array sorting) in Izzy.. 'measure color' is my current favorite actor.

              Troikatronix Technical Support

              • New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
              • My Add-ons: https://troikatronix.com/add-ons/?u=dusx
              • Profession Services: https://support.troikatronix.com/support/solutions/articles/13000109444-professional-services

              Running: Win 11 64bit, i7, M.2 PCIe SSD's, 32gb DDR4, nVidia GTX 4070 | located in Ontario Canada.

              1 Reply Last reply Reply Quote 2
              • Woland
                Woland Tech Staff last edited by Woland

                Performing some 💀thread necromancy💀 because I made an >>>EXAMPLE PATCH AND MACROS/USER ACTORS<<< for this wonderful concept.

                All credit is due to DusX for the idea and the original tutorial though.






                Best wishes,

                Woland

                TroikaTronix Technical Support
                New Support Ticket: https://support.troikatronix.com/support/tickets/new
                Support Policy: https://support.troikatronix.com/support/solutions/articles/13000064762
                Add-Ons: https://troikatronix.com/add-ons/ & https://troikatronix.com/add-ons/?u=woland
                Professional Services: https://support.troikatronix.com/support/solutions/articles/13000109444

                | Isadora Version: all of them | Mac Pro (Late 2013), macOS 10.14.6, 3.5GHz 6-core, 1TB SSD, 64GB RAM, Dual AMD FirePro D700s |

                1 Reply Last reply Reply Quote 1
                • Fred
                  Fred @DusX last edited by

                  @dusx very nice, but as Isadora is a node based system cant we have this as part of normal operations with actors? An user_input or user_output node for user actors that amalgamates signals?

                  http://www.fredrodrigues.net/
                  https://github.com/fred-dev
                  OSX 13.6.4 (22G513) MBP 2019 16" 2.3 GHz 8-Core i9, Radeon Pro 5500M 8 GB, 32g RAM
                  Windows 10 7700K, GTX 1080ti, 32g RAM, 2tb raided SSD

                  Woland 1 Reply Last reply Reply Quote 0
                  • Woland
                    Woland Tech Staff @Fred last edited by

                    @fred said:

                    @dusx very nice, but as Isadora is a node based system cant we have this as part of normal operations with actors? An user_input or user_output node for user actors that amalgamates signals?

                     All one would need to do is wrap it in a User Actor or Macro and it would be functionally the same as having a native actor; in some ways it would be even better because it has the potential to be more flexible.

                    At least that's my opinion.

                    Best wishes,

                    Woland

                    TroikaTronix Technical Support
                    New Support Ticket: https://support.troikatronix.com/support/tickets/new
                    Support Policy: https://support.troikatronix.com/support/solutions/articles/13000064762
                    Add-Ons: https://troikatronix.com/add-ons/ & https://troikatronix.com/add-ons/?u=woland
                    Professional Services: https://support.troikatronix.com/support/solutions/articles/13000109444

                    | Isadora Version: all of them | Mac Pro (Late 2013), macOS 10.14.6, 3.5GHz 6-core, 1TB SSD, 64GB RAM, Dual AMD FirePro D700s |

                    Fred 1 Reply Last reply Reply Quote 0
                    • Fred
                      Fred @Woland last edited by

                      @woland Yes sure, that is true. One question, can I send video in one of the channels with this group actor?

                      http://www.fredrodrigues.net/
                      https://github.com/fred-dev
                      OSX 13.6.4 (22G513) MBP 2019 16" 2.3 GHz 8-Core i9, Radeon Pro 5500M 8 GB, 32g RAM
                      Windows 10 7700K, GTX 1080ti, 32g RAM, 2tb raided SSD

                      Woland 1 Reply Last reply Reply Quote 0
                      • Woland
                        Woland Tech Staff @Fred last edited by

                        @fred said:

                        @woland Yes sure, that is true. One question, can I send video in one of the channels with this group actor?

                         A quick test says no :(

                        TroikaTronix Technical Support
                        New Support Ticket: https://support.troikatronix.com/support/tickets/new
                        Support Policy: https://support.troikatronix.com/support/solutions/articles/13000064762
                        Add-Ons: https://troikatronix.com/add-ons/ & https://troikatronix.com/add-ons/?u=woland
                        Professional Services: https://support.troikatronix.com/support/solutions/articles/13000109444

                        | Isadora Version: all of them | Mac Pro (Late 2013), macOS 10.14.6, 3.5GHz 6-core, 1TB SSD, 64GB RAM, Dual AMD FirePro D700s |

                        Fred 1 Reply Last reply Reply Quote 0
                        • Fred
                          Fred @Woland last edited by

                          @woland yes, I thought so, and I don't think it is possible with Javascript to do that, at least from this setup (comma separated fields). That is why I think it would be good to have this as a real user actor IO option.

                          http://www.fredrodrigues.net/
                          https://github.com/fred-dev
                          OSX 13.6.4 (22G513) MBP 2019 16" 2.3 GHz 8-Core i9, Radeon Pro 5500M 8 GB, 32g RAM
                          Windows 10 7700K, GTX 1080ti, 32g RAM, 2tb raided SSD

                          Woland DusX 2 Replies Last reply Reply Quote 0
                          • Woland
                            Woland Tech Staff @Fred last edited by

                            @fred said:

                            That is why I think it would be good to have this as a real user actor IO option.

                            TroikaTronix Technical Support
                            New Support Ticket: https://support.troikatronix.com/support/tickets/new
                            Support Policy: https://support.troikatronix.com/support/solutions/articles/13000064762
                            Add-Ons: https://troikatronix.com/add-ons/ & https://troikatronix.com/add-ons/?u=woland
                            Professional Services: https://support.troikatronix.com/support/solutions/articles/13000109444

                            | Isadora Version: all of them | Mac Pro (Late 2013), macOS 10.14.6, 3.5GHz 6-core, 1TB SSD, 64GB RAM, Dual AMD FirePro D700s |

                            1 Reply Last reply Reply Quote 0
                            • DusX
                              DusX Tech Staff @Fred last edited by

                              @fred

                              Agreed it would be cool to be able to bundle video. That said this is using standard JSON so it's useful for an number of things (web data etc..) 

                              You can include a broadcast channel and pick it up on the other end to set a listener.. it works if you keep track of channels (namespacing would be better).

                              Troikatronix Technical Support

                              • New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
                              • My Add-ons: https://troikatronix.com/add-ons/?u=dusx
                              • Profession Services: https://support.troikatronix.com/support/solutions/articles/13000109444-professional-services

                              Running: Win 11 64bit, i7, M.2 PCIe SSD's, 32gb DDR4, nVidia GTX 4070 | located in Ontario Canada.

                              Woland 1 Reply Last reply Reply Quote 0
                              • Woland
                                Woland Tech Staff @DusX last edited by

                                @dusx

                                Don't forget that naming Javascript inputs and outputs is a feature coming in Isadora 3 ;)

                                TroikaTronix Technical Support
                                New Support Ticket: https://support.troikatronix.com/support/tickets/new
                                Support Policy: https://support.troikatronix.com/support/solutions/articles/13000064762
                                Add-Ons: https://troikatronix.com/add-ons/ & https://troikatronix.com/add-ons/?u=woland
                                Professional Services: https://support.troikatronix.com/support/solutions/articles/13000109444

                                | Isadora Version: all of them | Mac Pro (Late 2013), macOS 10.14.6, 3.5GHz 6-core, 1TB SSD, 64GB RAM, Dual AMD FirePro D700s |

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