Versions Compared

Key

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

When you choose “Add new graph from file” or “Add new Python script from file” a file browser appears where you can load a RFG/XML (graphs) or a RFS/PY (script) file. Then, the “Add” dialogue is displayed.

The first look shows that the window is subdivided into several areas. While the meaning of most fields are pretty straight-forward and almost self-explanatory, there are few functions which require a deeper discussion – they are located under “Input parameters”.

Source

This area provides access to the graph's or script's source.

Edit graph/Edit Python script

A click on this button opens a graphs or Python editor. There you have to enter the instructions you want to execute when the command is used. The editors have exactly the same functionality as their “[ Batch Graph ]” and “[ Batch Script ]” counterparts from the “Layout” menu. Please read the appropriate chapters to learn more about how to use them.

A workflow for an example how to create a Python command can be found under “A Python Command”. Adding a new graph works exactly the same way.

File location

With “Add new graph” or “Add new Python script” you will see a non-editable “embedded” entry. If you have chosen “...from file” the field contains the path to the script you have been loading before.

A click on this button opens a file browser where you can change or update the path to the command's graph/script file. With embedded commands the button is inactive.

Save to file and convert to reference

This button can be seen with “Add new graph from file” or “Add new Python script from file”. When you click on it, RealFlow will convert the embedded command into a file and create a link to it. From this moment, the “Commands Manager” will always require access to the graph/script, so please be careful where you save the file: if it is not found the command cannot be executed.

Embed command into RealFlow

If you have chosen one of the “...from file” options you have the possibility of converting the external graph/script into an embedded command. The original file will be kept and not deleted; RealFlow will just cut the link to the file.

Properties

In this section the command is described and you can add an icon that will be displayed in RealFlow's shelves.

Class ID

A command requires a unique Id to make identifiable within RealFlow. We recommend using the already suggested Id to avoid conflicts. Please read more about the importance of the “Class ID” [ here ].

Generate

If you are not happy with the suggested Id please click on this button to create a new number.

Name

This field contains the command's name and how it will be displayed in RealFlow's shelves.

Please add your copyright information here (not mandatory).

Shortcut

This field contains the command's shortcut(s). To assign a key combination use the “Edit” button.

Edit

To provide quick access to your command you can define a shortcut with a small editor. RealFlow also has a sophisticated “Shortcut Manager” where you have access to all of RealFlow's key combinations. Please follow this [ link ] to learn more.

Icon

A symbol, representing your command, makes it perfect. Supported formats are PNG and SVG. SVG symbols have the great advantage that they can be scaled without a loss of quality. The selected icon is displayed here.

Edit Icon

Use this button to choose or update the icon file.

Description

The empty field is reserved for a detailed description of the command.

Input parameters

In many cases, scripts or graphs require start values to work. These defaults are then modified by the user to get different results. The input is done via a customizable user interface – something that has only been possible with scripts so far. In RealFlow 2014 you will now find appropriate nodes to allow user interfaces with graphs as well. These interface nodes have a direct connection to the “Add” window's “Input parameters” section. This means that you can edit the graph's default values here without opening and editing the graph itself.

Info
Please bear in mind that currently only graphs are connected to “Edit” buttons of this section and Python user interfaces are not yet supported.
Edit input parameters (n)

If your graph contains interface nodes you will be able to list, display, and edit them with a click on this button. The number in brackets shows the total number of input parameters.

Info
Please take a look at this [ chapter ] for an example how to work with this feature.
Edit default values

This dialogue is closely related to “Edit input parameters (n)”. There you can edit the interface nodes, but here is a place to define their initial values when the graph is executed and the UI is displayed.

Info
Please take a look at this [ chapter ] for an example how to work with this feature.
Edit next execution values

This is a very nice feature, because RealFlow can remember the user's input values and write them to the UI when the command is executed again. In other words: the working settings are kept and you do not have to repeat the entire input procedure when you are using the command the next time. Please bear in mind that this feature also works for C++ plugins.

Prompt user

When a command provides a user interface you can choose here when it should be displayed:

  • Never”. The UI will not be shown and the default values are used for the command's execution

  • On first execution”. With this option, the UI will be shown only once during a session.

  • Always”. In this case, the UI will be shown when the command is executed.

Cancel/Add

With “Cancel”, the current process is aborted. “Add” confirms your settings and adds the command to the already existing pool.

...