Trigger and Functions

Triggering from outside

Triggers are basically just functions.
click this to toggle a boolean via a trigger:

Ops.Patch.Function op creates a javascript function in CABLES.patch.config
you can just call this:
CABLES.patch.config.patchFunctiontrigger();
    

Calling functions from cables patch

calling functions by triggering from cables is done using the op Ops.Patch.CallBack

    function myFunction()
    {
        alert("function called!");
    }

    CABLES.patch = new CABLES.Patch({
        //...
        outSidefunction:myFunction
    });
    


open original patch