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

  • Tech Staff

    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 :)

  • Tech Staff


    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.