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

Navigation

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

    JavaScript - Expose array value instead of the index of the array

    Troubleshooting and Bug Reports
    2
    2
    175
    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, 

      When you have an actor with a Slider in it (So let's say the PJLINK Actor with the command input) it has a fixed list of items that you can choose from. For example "POWER ON (POWR)", if you connect an JavaScript actor to that field you will receive the Index of the array where all the items are specified. I would personally expect that I get the text of the item. (So the value of the item, not the index)


      Caused some confussion :)

      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 0
      • Woland
        Woland Tech Staff @Juriaan last edited by

        @juriaan

        I'm not sure that this functionality is something that we should change. If we change the way this works, it could break people's patches that have already been created to work with this behavior.

        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
        • First post
          Last post