Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The “Commands Manager” offers the possibility of adding custom commands to RealFlow. “Custom” means that you have to create/write a graph or a Python script to describe the command's functionality. Each time the command is used, RealFlow launches your program and executes the code. Typical examples of custom commands are Python scripts for changing a scene nodes' parameters, saving images, doing initial calculations, adding objects etc.

To do this, you have access to graphs and Python editors where the source code is entered. Alternatively you can load an already existing graph or script file, and define it as a command. Graph files wear an RFG or XML extension, scripts have a RFS or PY suffix.

...

There are four options to create a new custom command. Regardless of which “Add” option you are going to use, there is one thing they have in common: you always have access to the command's source code. You can open the associated code at any time and change, extend, or shorten it. C++ plugins, on the other hand, do not provide access to their source code, and are therefore treated differently. This is the reason they do not appear in the “Add” button's context menu. Once you have chosen the desired type a window is opened where you can specify the command's properties. The functions of this dialogue are explained separately here.

Drag and Drop Actions

---->>

Adding Graphs

“Add new graph”. This option creates an empty graph that will be embedded inside RealFlow. “Embedded” means that you will not have access to this command via a XML or text editor.

...