Contact Us

CATEGORIES

Whoops…Nothing found

Try other keywords in your search

pixc.callRefs

 0 Minutes

 0 Likes

 1787 Views

The callRefs() built-in function allows you to control the parameter values passed along the connections between actions (the "references" to other actions).

The counterpart to pixc.callRefs is pixc.surpressCallRefs, which prevents data from being passed on automatically

Basically, the pixc.callRefs function executes all connected action(functions) that are linked to it. The return of the connected functions is returned collectively.


No use of pixc.callRefs()

This function is used to pass values in a node based system, if this function is not used in an action, it is automatically created in the Lua core. 
Empty actions like this automatically forward the input value pixc.callRefs(any) is added in the background.


Use of pixc.callRefs()

This one uses a pixc.callRefs, so the variable that was sent to the module is ignored and only what was specified in callRefs is passed on.


Use of pixc.suppressCallRefs()

This function blocks the forwarding in the Node system so that no further actions are called that were connected in the Node system.


callRefs and return

Since actions are nothing more than functions, returns can be used as normal. In the interaction of the pixc.callRefs these behave in such a way that first all functions which are connected via reference are called, the returns of these functions are returned collectively to the function call in a table format:
 

  • Table with all connected actions
    • Number of element
    • Table with all return values of the element
      • Number of element
      • return

Check example file:

CallRefs and Return


Pixera 2.0.177 | 12. September 2024 | J.B.

 

Was this article helpful?