Function_v2 Op

Function

trigger from external function when embedded into a website


<p>Execute / trigger from an external script, useful when embedding a cables-patch into a website.</p> <p>e.g: Function Name is <code>myFunction</code>, then you can trigger ops connected to <code>Next</code> via this javascript code:</p> <p><code>myPatch.config.myFunction()</code></p>


Full Name
  • Ops.Cables.Function_v2
Visibility
  • Core Op - Official cables op
License
  • MIT
Authorgithub








No op example found on this server

INPUT PORTS


Function Name (String)

<p>The name of the function you want to define, e.g. when you name the function <code>myFunction</code> you can trigger it from your JavaScript-Code using <code>CABLES.patch.config.myFunction();</code></p>

Trigger (Trigger)

<p>run the function from inside the cables patch</p>

Default Parameter 1 (String)

<p>parameter default value if external function does not define it</p>

Default Parameter 2 (String)

<p>parameter default value if external function does not define it</p>

Default Parameter 3 (String)

<p>parameter default value if external function does not define it</p>

OUTPUT PORTS


Next (Trigger)

<p>triggered when function has been called</p>

Parameter 1 (String)

<p>first parameter of the called function, or default</p>

Parameter 2 (String)

<p>second parameter of the called function, or default</p>

Parameter 3 (String)

<p>third parameter of the called function, or default</p>


Patches using Function_v2

  • Examples
  • Public
  • My Patches

Changelog


cloned op from Ops.Patch.Functionuser avatarpandur - 2021-03-19 08:02
Ops.User.pandur.Function2 renamed to Ops.Patch.Function_v2user avatarpandur - 2021-03-19 08:03
added parameter portsuser avatarstephan - 2021-07-05 13:47
renameOps.Patch.Function_v2 renamed to Ops.Cables.Function_v2user avatarpandur - 2023-03-08 09:52