How to add nodes to a graph
Defining the functionality of your graph.
Opening the node creation menu
In the TerraTiler2D window, right click anywhere on the grid background, and select 'Create Node'. A menu should open right below the position you clicked. This is the node creation menu.
This menu contains all the nodes you are able to create, ordered by category. Simply press the node's menu entry to make it appear in your graph.
To get information on a node, hover over the Failed to load image icon to see that node's tooltip. This tooltip consists of 3 components; the node's description, the node's input tooltip, and the node's output tooltip.
Searching for nodes
If you want to find a specific node, you can use the search bar. All the nodes with a name that contains your search will be listed in the menu.
Another way to find the node you are looking for is by dragging an edge from a port, and dropping it anywhere in the graph. This will open up the node creation menu, and automatically apply a filter to only list nodes that can be connected to that edge.
You can also manually apply filters to your search:
Filter Functionality Example
:name: or :title: Only return nodes with a name that contains the search criteria. This is the default behaviour of the search bar, but if you wish to combine this default behaviour with other filters, you need to manually apply it using these tags. ":name: noisemap"
Returns all nodes whose name contains "noisemap".
:description: or :des: Only return nodes with a description that contains the search criteria. ":description: places tiles"
Returns all nodes whose description contains "places" and "tiles".
:input: or :in: Only return nodes with an input tooltip that contains the search criteria. ":input: texture2d bool vect"
Returns all nodes whose input tooltip contains "texture2d", "bool", and "vect".
:output: or :out: Only return nodes with an output tooltip that contains the search criteria. ":output: world :input: textu"
Returns all nodes whose output tooltip contains "world", and input tooltip contains "textu".
Using properties
Besides creating nodes, you can also create properties. To do so, right click anywhere in the Properties window found in the top left corner of the TerraTiler2D window.
Properties act as the input and output of your graph. Both before and after running a graph, you can access the values of these properties. You can change property values manually using the variable fields in the Properties window, or you can do so through scripts (which will be explained in a later chapter).
Once you have created a property, you can right click that property to open up its contextual menu.
If you press 'Make Getter node', a small colored node should appear in your graph. This node will return the value of the associated property.
If you press 'Make Setter node', a bigger colored node should appear in your graph. This node can be used to change the value of a property during graph execution.
Next step