Skip to content

Instantly share code, notes, and snippets.

@michaelnugent
Last active November 6, 2016 14:56
Show Gist options
  • Select an option

  • Save michaelnugent/2c6a3bd56b1b20a5373b718cca2b3651 to your computer and use it in GitHub Desktop.

Select an option

Save michaelnugent/2c6a3bd56b1b20a5373b718cca2b3651 to your computer and use it in GitHub Desktop.
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