• 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

    [FEATURE EXISTS] Javascript - Naming Inputs

    Feature Requests
    3
    3
    2226
    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.
    • mark
      mark last edited by Woland

      Dear Community (and particularly @Juriaan and @DusX)

      So, this morning I added the ability to name the inputs and outputs on the Javasript actor for Isadora v3. Like the GLSL shader, approach to this is to use a special comment format to accomplish this.

      Here's an example:

      // iz_input 1 "custom first input"
      // iz_input 2 "custom second input"
      // iz_output 1 "custom first output"

      function main()
      {
         return arguments[0] + 1;
      }

      I think the format is clear: a "//" followed by either iz_input or iz_output, the input or output number, and then the words you want to appear for that title. This results in the following:


      I figure that doing it this way is easier to maintain than some kind of external command to open an editor dialog with the in/out names, etc.

      Whad'ya think?

      Best,
      Mark

      Media Artist & Creator of Isadora
      Macintosh SE-30, 32 Mb RAM, MacOS 7.6, Dual Floppy Drives

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

        I agree that this is a good way. The prefix that you use is also not something that you can type on accident.

        Thanks for these additions. Cant wait to have my hands on Isadora 3 :)

        Isadora 4.x, Windows 11 Dell XPS 17 5010 or my MacBook Pro M3 Max (Tahoe)
        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
        • Woland
          Woland Tech Staff last edited by

          @GertjanB 

          You also might want to see this

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