SwDPDT.js is an extension node Widget, which performs like a Double Pole Double Throw switch.
To use it, save it in the nodeeditor extensions folder.
It is a modification to Max's Switch node.
The upper output is output (#0), same as for Switch node.
The NC output is a No Connection dummy output (#1) to line up output #2 for the second ctx "wire".
SwDPDT_demo.zip is a nod program to demo the connections. (Uses James circle/square technique, with second
switch chosing between rectangle and polygon.
Both switches change I/O state with the same mouseClick.
Both switches are the same datatype. Choose one of either numpoints, pointarrays, or objectlist for both switches..
- Brian
See second post down for updated files.
|