I am trying to connect the source output of a containerCOMP to the source input of a buttonCOMP via Python but cannot find any documentation or samples of this. Is this possible to do with python or is there a tscript equivalent?
Replace your operators with whatever you like.
connector.toe (3.53 KB)
Thanks for the reply elburz,
Unfortunately this does not seem to work with source inputs/outputs (However I would love to be proven otherwise!)
I’ve attached a file to illustrate my question.
Do you know what the solution is for this?
I can’t wait for the -doh’- moment lol
connectorHelp.1.toe (5.35 KB)
Very close.
You need the COMP version of the connectors, as Components, unlike other operators, have two types of connection points
op(‘buttonmomentary’).inputCOMPConnectors[0].connect(op(‘container1’))
op(‘container1’).outputCOMPConnectors[0].connect(op(‘buttonmomentary’).inputCOMPConnectors[0] )
op(‘container1’).outputCOMPConnectors[0].connect(op(‘buttonmomentary’))
All 3 are functionally the same. (Also note you had a small typo in your third example).
Ive made a note in the wiki.
Cheers
Rob
Works like a charm - Thanks Rob!