Skip to content

Node built ins Reference

Jamie Bliss edited this page Jun 2, 2015 · 1 revision

The extra built-in functions used by nodes.

Currently, examples only use shapes, floats, and strings for variable types. It's not known if other kinds of variables can be used.

title(name)

Set the title of the node (seen in the upper left).

  • name: (String) The title

input(name, type, [default])

Define an input variable.

  • name: (String) Name displayed and name used in code
  • type: (Type) A Python type of the variable (limitations and exact casting rules unknown)
  • default: (Optional) The default value

output(name, obj)

Define an output variable.

  • name: (String) The name of the variable
  • obj: The value of the variable

Hacking

The source code for these is found in src/graph/hooks.