• Isadora
  • Get it
  • Forum
  • Help
  • ADD-ONS
  • Newsletter
  • Impressum
  • Dsgvo
  • Impressum
Forum

Navigation

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

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

    How To... ?
    5
    14
    3418
    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
      • Isadora Add-ons: https://troikatronix.com/add-ons/
      • My Add-ons: https://troikatronix.com/add-ons/?u=dusx

      Running: Win 10 64bit, i7-8750H, M.2 PCIe SSD's, 16gb DDR4-2666, nVidia GTX 1070 | 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: Windows 11, AMD 7 Ryzen, RTX3070, 16gig RAM. 2 x M.2 SSD. HD. Lenovo Legion 5 gaming laptop.
        RIG 2: Windows 11, Intel i19 12th Gen. RTX3070ti, 16gig RAM (ddr5), 1x M.2 SSD. UHD DELL G15 Gaming laptop.
        RIG 3: Apple 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
          • Isadora Add-ons: https://troikatronix.com/add-ons/
          • My Add-ons: https://troikatronix.com/add-ons/?u=dusx

          Running: Win 10 64bit, i7-8750H, M.2 PCIe SSD's, 16gb DDR4-2666, nVidia GTX 1070 | located in Ontario Canada.

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

            umbilical!

            John Collingswood
            taikabox.com
            2013 MBPR 2.3GHZ i7 OSX11.7.4 16GB
            & 2019 MBPT 2.6GHZ i7 OSX12.3 16GB

            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
              • Isadora Add-ons: https://troikatronix.com/add-ons/
              • My Add-ons: https://troikatronix.com/add-ons/?u=dusx

              Running: Win 10 64bit, i7-8750H, M.2 PCIe SSD's, 16gb DDR4-2666, nVidia GTX 1070 | 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 Link: https://support.troikatronix.com/support/tickets/new
                TroikaTronix Support Policy: https://support.troikatronix.com/support/solutions/articles/13000064762
                TroikaTronix Add-Ons Page: https://troikatronix.com/add-ons/

                | Isadora 2.6.1 + 3 | Mac Pro (Late 2013), macOS 10.14.6, 3.5GHz 6-core, 1TB SSD, 64GB RAM, Dual AMD FirePro D700s | Macbook Pro (Retina, 15", Mid 2015), macOS 10.11.4, 2.8GHz Intel Core i7, 16GB RAM, Intel Iris Pro 1536 MB |

                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 10.15.15 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
                  Windows 10 Threadripper 3960x 64g ram, 1tb NVME, rtx 2080ti + rtx2070 super

                  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 Link: https://support.troikatronix.com/support/tickets/new
                    TroikaTronix Support Policy: https://support.troikatronix.com/support/solutions/articles/13000064762
                    TroikaTronix Add-Ons Page: https://troikatronix.com/add-ons/

                    | Isadora 2.6.1 + 3 | Mac Pro (Late 2013), macOS 10.14.6, 3.5GHz 6-core, 1TB SSD, 64GB RAM, Dual AMD FirePro D700s | Macbook Pro (Retina, 15", Mid 2015), macOS 10.11.4, 2.8GHz Intel Core i7, 16GB RAM, Intel Iris Pro 1536 MB |

                    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 10.15.15 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
                      Windows 10 Threadripper 3960x 64g ram, 1tb NVME, rtx 2080ti + rtx2070 super

                      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 Link: https://support.troikatronix.com/support/tickets/new
                        TroikaTronix Support Policy: https://support.troikatronix.com/support/solutions/articles/13000064762
                        TroikaTronix Add-Ons Page: https://troikatronix.com/add-ons/

                        | Isadora 2.6.1 + 3 | Mac Pro (Late 2013), macOS 10.14.6, 3.5GHz 6-core, 1TB SSD, 64GB RAM, Dual AMD FirePro D700s | Macbook Pro (Retina, 15", Mid 2015), macOS 10.11.4, 2.8GHz Intel Core i7, 16GB RAM, Intel Iris Pro 1536 MB |

                        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 10.15.15 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
                          Windows 10 Threadripper 3960x 64g ram, 1tb NVME, rtx 2080ti + rtx2070 super

                          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 Link: https://support.troikatronix.com/support/tickets/new
                            TroikaTronix Support Policy: https://support.troikatronix.com/support/solutions/articles/13000064762
                            TroikaTronix Add-Ons Page: https://troikatronix.com/add-ons/

                            | Isadora 2.6.1 + 3 | Mac Pro (Late 2013), macOS 10.14.6, 3.5GHz 6-core, 1TB SSD, 64GB RAM, Dual AMD FirePro D700s | Macbook Pro (Retina, 15", Mid 2015), macOS 10.11.4, 2.8GHz Intel Core i7, 16GB RAM, Intel Iris Pro 1536 MB |

                            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
                              • Isadora Add-ons: https://troikatronix.com/add-ons/
                              • My Add-ons: https://troikatronix.com/add-ons/?u=dusx

                              Running: Win 10 64bit, i7-8750H, M.2 PCIe SSD's, 16gb DDR4-2666, nVidia GTX 1070 | 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 Link: https://support.troikatronix.com/support/tickets/new
                                TroikaTronix Support Policy: https://support.troikatronix.com/support/solutions/articles/13000064762
                                TroikaTronix Add-Ons Page: https://troikatronix.com/add-ons/

                                | Isadora 2.6.1 + 3 | Mac Pro (Late 2013), macOS 10.14.6, 3.5GHz 6-core, 1TB SSD, 64GB RAM, Dual AMD FirePro D700s | Macbook Pro (Retina, 15", Mid 2015), macOS 10.11.4, 2.8GHz Intel Core i7, 16GB RAM, Intel Iris Pro 1536 MB |

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