Last active
November 6, 2016 14:56
-
-
Save michaelnugent/2c6a3bd56b1b20a5373b718cca2b3651 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function IO() { | |
| DLog('test'); | |
| return { | |
| io: [ | |
| { | |
| 'name': 'input11', | |
| 'direction': 'input', | |
| 'type': 'integer' | |
| }, | |
| { | |
| 'name': 'input21', | |
| 'direction': 'input', | |
| 'type': 'float', | |
| }, | |
| { | |
| 'name': 'output11', | |
| 'direction': 'output', | |
| 'type': 'string', | |
| }, | |
| { | |
| 'name': 'ConstOut', | |
| 'direction': 'output', | |
| 'type': 'float', | |
| }, | |
| ], | |
| } | |
| } | |
| function Panel() { | |
| return { | |
| panel: [ | |
| { | |
| 'name': 'slider', | |
| 'widget': 'slider', | |
| 'low': '0', | |
| 'high': '1', | |
| }, | |
| { | |
| 'name': 'sbox', | |
| 'widget': 'input', | |
| 'type': 'string', | |
| 'default': 'foo', | |
| }, | |
| { | |
| 'name': 'fbox', | |
| 'widget': 'input', | |
| 'type': 'float', | |
| 'default': '3.1415', | |
| }, | |
| { | |
| 'name': 'cbox', | |
| 'widget': 'checkbox', | |
| 'state': 'checked', | |
| }, | |
| ], | |
| } | |
| } | |
| function Code() { | |
| var a = NodeRead('fbox'); | |
| NodeWrite('ConstOut', a); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment