The function graph

Similarities with a regular graph

At first sight, the function graph is really similar to a compositing graph and the workflow is almost the same.

Navigation is similar

In the function graph, you can create and organize your nodes the same way you would do in a regular graph.

you can access the nodes the same way:

  • From the library
  • by pressing space bar or Tab key
  • by right-clicking and using the Add node menu

Workflow is similar

Like in the compositing graph, you will build your function by chaining series of nodes, each of them using the result generated by the previous one(s).

The output will either define the value of a parameter or the output of the pixel processor node.

Difference with a compositing graph

The nodes

The available nodes in the graph are completely different from the ones you would encounter in a compositing graph.

The Output

Contrary to regular graphs, a function can have only one output.

Another point to note is that there is no specific output node where you plug your final result. Instead, you can directly flag as output, the node that generates the result you expect:

How to define the Output node ?

To define the output, just right-click on the node that generates the expected output, and click on Set as Output node:

Double check the generated result type.

If you notice that Set as Output Node is grayed out, it means that the value generated by the node is different than the value expected by the parameter or the pixel processor.

As for compositing graphs, you can import functions made in another graph. You can open the reference graph by right-clicking on it, and choose "Open Reference":

New in SD 2017.1: if you have a sbs containing multiple functions, you can drag'n'drop it directly into a function graph and choose the function you want to import in the appearing list: