• 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

    JavaScript - Output that is mutated on 'range' type

    Troubleshooting and Bug Reports
    javascript
    2
    5
    686
    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.
    • Juriaan
      Juriaan Tech Staff last edited by

      Hi there, 


      As some of you know Isadora has different type's of data that a Input / Output can be, for example an Text, Interger, Float, etc. 

      We also have the 'range' type that is typically used for things like a Note on watcher. 

      I tried all possible solutions but I could not figure out how to set the range type to the desired value using the JavaScript actor and it is currently blocking work for a client.

      I attached a simple repro file.

      Tagging some JavaScript peeps :) @DusX @GertjanB

      Isadora 3.1.1, Dell XPS 17 9710, Windows 10
      Interactive Performance Designer, Freelance Artist, Scenographer, Lighting Designer, TroikaTronix Community moderator
      Always in for chatting about interaction in space / performance design. Drop me an email at hello@juriaan.me

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

        https://1drv.ms/u/s!AsGHU5QfIy...

        Isadora 3.1.1, Dell XPS 17 9710, Windows 10
        Interactive Performance Designer, Freelance Artist, Scenographer, Lighting Designer, TroikaTronix Community moderator
        Always in for chatting about interaction in space / performance design. Drop me an email at hello@juriaan.me

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

          The Javascript actor's input and output parameters are mutable, but I don't think it's currently possible to dynamically generate ranges. I can certainly see that we need to be able to dynamically generate ranges, so I'll put that in as a feature request.

          Here's a bit of a workaround for now though: EXAMPLE FILE

          Since a Selector can store a range, you can manually input all your desired ranges into a Selector actor and then change the "select" input as a clunky way of dynamically changing a numerical range. I will say that this workaround is kind of a nightmare when you work with large ranges because you have to manually type each possible permutation into the Selector one input at a time. Likewise, if you make a mistake while typing the permutations, it'll screw with the logic you're going to need to program to get the right Selector input based on the start and end numbers in the desired range. 


          I made a User Actor that accepts the start and end numbers of a range using integers between 1 and 16. It has limitations, such as it can't deal with a range where the first number is larger than the second, (that'd necessitate more logic than I programmed and it would mean needing to expand the number of selector inputs to allow for those ranges, but I didn't feel like retyping all of them so I just called this workaround good enough for now).

          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 |

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

            @Woland

            Thanks ! Workable for now, but indeed it becomes a bit stupid when we have a greater range.

            Isadora 3.1.1, Dell XPS 17 9710, Windows 10
            Interactive Performance Designer, Freelance Artist, Scenographer, Lighting Designer, TroikaTronix Community moderator
            Always in for chatting about interaction in space / performance design. Drop me an email at hello@juriaan.me

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

              @Juriaan said:

              Workable for now, but indeed it becomes a bit stupid when we have a greater range.

               Yeah...

              The range data type is really weird and a pain in the but to try to change dynamically.

              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