• 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

    [ANSWERED] Naming inputs javascript

    Feature Requests
    javascript
    2
    3
    906
    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.
    • Fred
      Fred last edited by mark

      I am working on a few things in javascript and want to have named inputs and outputs. I am working with 6 inputs and outputs and without names things get very confusing fast. Simple renaming from outside the actors would be ok, super level would be to have declareInputs() and  declareOutputs() methods that take the variable names and use them for the input and output names on the actor.

      http://www.fredrodrigues.net/
      https://github.com/fred-dev
      OSX 13.6.4 (22G513) 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

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

        Dear @Fred 

        Your wish is my command. ;-) It's in the release notes for Isadora 3.

        Javascript Actor - Renamable Inputs and Outputs

        Mark has added the ability to name the inputs and outputs on the Javascript actor for Isadora v3. Like the GLSL shader, the approach to this is to use a special comment format; in this case 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. 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;
        }

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

        Fred 1 Reply Last reply Reply Quote 1
        • Fred
          Fred @mark last edited by

          @mark

          Yay, I am super happy I missed that!

          Amazing.

          http://www.fredrodrigues.net/
          https://github.com/fred-dev
          OSX 13.6.4 (22G513) 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

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