• 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 actor with multiple outputs

    How To... ?
    2
    4
    1633
    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.
    • T
      tadakan last edited by

      I want to create a javascript actor with one input and multiple outputs. How do I name the outputs? are they still arguments[i] or are they named differently somehow?

      It's probably in the arguments object documentation, but I couldn't seem to find it.
      Tom

      OSX 10.11.6 on 15" rMBP from Oct. 2014. 2.5ghz i7 16gb ram.

      1 Reply Last reply Reply Quote 0
      • DusX
        DusX Izzy Guru last edited by

        You return a list . The outputs wl be the list items in order of output. something like .. var out = [ v1 , v2 ]; return out; Your outputs available will be v1 and v2. But not labeled as such.

        ๐ŸŽ›๏ธ TroikaTronix Professional Services
        https://troikatronix.com/professional-services

        ๐ŸŽซ Support Tickets
        https://support.troikatronix.com/support/tickets/new

        ๐Ÿ’ป Add-ons
        https://troikatronix.com/add-ons/?u=dusx

        ๐Ÿงช GitHub Projects
        https://github.com/rwebber

        ๐Ÿ–ฅ๏ธ Win11 | i7 | RTX 4070 | 32GB RAM | Ontario, Canada

        1 Reply Last reply Reply Quote 0
        • DusX
          DusX Izzy Guru last edited by

          The 'getting started with javascript' knowledge base article covers this. http://troikatronix.com/support/kb/getting-started-with-javascript/

          ๐ŸŽ›๏ธ TroikaTronix Professional Services
          https://troikatronix.com/professional-services

          ๐ŸŽซ Support Tickets
          https://support.troikatronix.com/support/tickets/new

          ๐Ÿ’ป Add-ons
          https://troikatronix.com/add-ons/?u=dusx

          ๐Ÿงช GitHub Projects
          https://github.com/rwebber

          ๐Ÿ–ฅ๏ธ Win11 | i7 | RTX 4070 | 32GB RAM | Ontario, Canada

          1 Reply Last reply Reply Quote 0
          • T
            tadakan last edited by

            Thamks! I knew it was obvious. Just couldn't see it yesterday. I did skim the getting started, but I missed the sentence "An array can be returned by the return statement to allow multiple outputs from the Javascript actor." I probably read it, but it didn't really register. Notย enough sleep.

            OSX 10.11.6 on 15" rMBP from Oct. 2014. 2.5ghz i7 16gb ram.

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