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

Navigation

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

    Javascript actor with multiple outputs

    How To... ?
    2
    4
    1032
    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 Tech Staff 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 Technical Support

        • New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
        • Isadora Add-ons: https://troikatronix.com/add-ons/
        • My Add-ons: https://troikatronix.com/add-ons/?u=dusx

        Running: Win 10 64bit, i7-8750H, M.2 PCIe SSD's, 16gb DDR4-2666, nVidia GTX 1070 | located in Ontario Canada.

        1 Reply Last reply Reply Quote 0
        • DusX
          DusX Tech Staff last edited by

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

          Troikatronix Technical Support

          • New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
          • Isadora Add-ons: https://troikatronix.com/add-ons/
          • My Add-ons: https://troikatronix.com/add-ons/?u=dusx

          Running: Win 10 64bit, i7-8750H, M.2 PCIe SSD's, 16gb DDR4-2666, nVidia GTX 1070 | located in 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