Execution
This class contains nodes for a wide variety of applications. With these nodes it is, for example, possible to
- create loops
- add helper nodes for cleaner graphs
- purge the memory allocated by a graph
- change the number of threads used for the execution of a graph
- print out information to RealFlow's "Messages" window
Some of the "Execution" nodes have certain requirements and we recommend reading "RealFlow's Graphs Guide". There we have prepared a dedicated chapter explaining how to use these nodes.
Nodes
Name | Description |
---|---|
CommandParameterInfo | This node returns the list of parameter names and types of the input command. |
Compound | This node acts as a container of a subgraph. Thus, an additional layer of abstraction is provided. |
CompoundInterface | This node acts as an interface between a compound and its containing graphs. |
Concentrator | This node acts as a passthrough node for as many inputs as desired. However, ALL inputs are ALWAYS evaluated. Evaluation order of the inputs is top to bottom.Take care, that all outputs have an associated input to avoid evaluation time errors. |
DateTimeFromSeconds | This node converts a value in seconds since epoch to every one of its human readable components. |
Evaluator | The Evaluator node is the terminal node that determines which nodes are actually evaluated at graph execution. |
ExecuteCommand | This node executes all the commands with the input Class IDs sequentially. |
For | The For node is a special node that can be used to perform graph iterations. |
GetAllGlobalVariableNames | This node returns all names of actual defined global variables. The result is stored for every allowed type separately. |
GetCurrentDateTime | This node returns the current computer local time. |
GetGraphNumberOfThreads | This node returns the number of threads used for the excecution of the current compound and its children. |
GraphCancel | This node evaluates its input 'in' and then stops the execution of the current graph if the input 'condition' is 'true'. |
GraphInterface | This node acts as an interface between a graph and the rest of RealFlow. |
GraphPurgeMemory | This node clears the memory, messages and timing data stored in the current graph scene nodes and pins. |
HasCommand | This node checks if there are commands in RealFlow with the given Class ID. |
Kernel | The Kernel node is a special node that can be used to perform graph iterations in parallel. |
MemoryUsageInfo | This node outputs the memory usage in kilobytes for the current state of the graph. |
MessagePrint | This node prints a standard RealFlow message in the MessageWindow, using a string representation of the provided input 'value'. |
NodePurgeMemory | This node purges the data stored in the owner of the connected 'input' pin.Nodes that allocate big data structures (like all the Copy nodes) store their data inside the node. |
Pass | This node acts as a passthrough node. The output value is exactly the same as the input. No copy is performed. |
PinPurgeMemory | This node purges the data stored in the connected 'input' pin.Basic types (like Integer or String) store their values in the pins. |
PinSignature | Computes the MD5 signature of the input data. |
PythonCodeExecute | This node executes the input Python source code, but does not return any value. |
Selector | This node allows the user to freely connect its passthrough inputs to its passthrough outputs. Keep in mind that all outputs should have an associated input to avoid evaluation time errors. |
SetGraphNumberOfThreads | This node changes the number of threads used for the current compound and its children behind this nodes evaluation. |
Sleep | This node freezes the graph evaluation for the input 'milisecs' amount of time in miliseconds. |
Â
CommandParameterInfo
This node returns the list of parameter names and types of the input command.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
class id | Integer64Â (1) | Â | The Class ID of the command to be checked |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
parameter names | String | Â | The names of the parameters that belong to the input command |
parameter types | String | Â | The parameter types |
Â
Compound
This node acts as a container of a subgraph. Thus, an additional layer of abstraction is provided.
The Compound node allows the creation of dynamic input/output pins with used-defined names.
If a pin is added to the Compound, an equivalent interface node is created within the contained graph.
Â
CompoundInterface
This node acts as an interface between a compound and its containing graphs.
The CompoundInterface node allows the creation of dynamic input/output pins with user-defined names.
If a pin is added to the CompoundInterface node, a pin with the same name is created in its parent compound.
When a pin is added to the Compound, an equivalent interface node is created in its contained graph.
Â
Concentrator
This node acts as a passthrough node for as many inputs as desired. However, ALL inputs are ALWAYS evaluated. Evaluation order of the inputs is top to bottom.Take care, that all outputs have an associated input to avoid evaluation time errors.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
in | PassThrough | The in |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
out | PassThrough | The out |
Â
DateTimeFromSeconds
This node converts a value in seconds since epoch to every one of its human readable components.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
total seconds | Integer64 | through | The total number of seconds since epoch to convert |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
year | Integer | Â | The year number in four digit format |
month | Integer | Â | The month number |
day | Integer | Â | The month day |
hour | Integer | Â | The hour in local time |
minute | Integer | Â | The minute in local time |
second | Integer | Â | The second in local time |
gmt | Integer | Â | The local GMT offset |
through | PassThrough | total seconds | The input 'total seconds' |
Â
Evaluator
The Evaluator node is the terminal node that determines which nodes are actually evaluated at graph execution.
At graph execution, every Evaluator node pin computes the chain of nodes connected to it and executes them in the proper order.
This node accepts the creation of dynamic input/output pins with used-defined names.
Take note that Evaluator nodes can only be located at the root level.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
evaluate | Â | The evaluate |
Â
ExecuteCommand
This node executes all the commands with the input Class IDs sequentially.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
class id | Integer64 | Â | The Class ID of the command to be executed. Keep in mind that most built-in commands are not created when RealFlow is launched on command line mode |
in | PassThrough | through | The in |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
through | PassThrough | in | The input 'in' |
Â
For
The For node is a special node that can be used to perform graph iterations.
A For node must always be inside a Compound node. It cannot be located at the root level.
Nodes - at the same level as the For node - are evaluated as many times as the For condition requires. Thus, a node depending on the For 'currentIndex' output is evaluated for each iteration. If it is connected several times to an evaluator node, it is evaluated accordingly repetitively. This is a limitation yet to be solved.Only one single For node is allowed at the same graph level. Nested For iterations can be performed using nested Compounds, each containing a separate For node.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
start | Integer (1) |  | The start |
stop | Integer (1) |  | The stop |
step | Integer (1) |  | The step |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
current index | Integer | Â | The current index |
Â
GetAllGlobalVariableNames
This node returns all names of actual defined global variables. The result is stored for every allowed type separately.
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
bit names | String | Â | The bit names |
box names | String | Â | The box names |
distance field names | String | Â | The distance field names |
image names | String | Â | The image names |
mesh names | String | Â | The mesh names |
mesh voxelization names | String | Â | The mesh voxelization names |
particle voxelization names | String | Â | The particle voxelization names |
num names | String | Â | The num names |
scene node names | String | Â | The scene node names |
string names | String | Â | The string names |
vector3 field names | String | Â | The vector3 field names |
graph particles names | String | Â | The graph particles names |
real field names | String | Â | The real field names |
spline names | String | Â | The spline names |
key names | String | Â | The key names |
curve names | String | Â | The curve names |
Â
GetCurrentDateTime
This node returns the current computer local time.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
in | PassThrough | through | The in |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
year | Integer | Â | The current year number in four digit format |
month | Integer | Â | The current month number |
day | Integer | Â | The current month day |
hour | Integer | Â | The current hour in local time |
minute | Integer | Â | The current minute in local time |
second | Integer | Â | The current second in local time |
gmt | Integer | Â | The local GMT offset |
total seconds | Integer64 | Â | The current total number of seconds since epoch in local time |
through | PassThrough | in | The input 'in' |
Â
GetGraphNumberOfThreads
This node returns the number of threads used for the excecution of the current compound and its children.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
in | PassThrough | through | The in |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
threads | Integer | Â | The current number of threads. 0 for default |
actual threads | Integer | Â | The actual current number of threads |
through | PassThrough | in | The input 'in' |
Â
GraphCancel
This node evaluates its input 'in' and then stops the execution of the current graph if the input 'condition' is 'true'.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
cancel | Bit (1) |  | The cancel |
quiet | Bit (1) |  | Set to 'true' to cancel graph execution without showing any error |
in | PassThrough | through | The in |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
through | PassThrough | in | The input 'in' |
Â
GraphInterface
This node acts as an interface between a graph and the rest of RealFlow.
The Graph Interface node allows the creation of dynamic output pins with user-defined names and types.
Â
GraphPurgeMemory
This node clears the memory, messages and timing data stored in the current graph scene nodes and pins.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
in | PassThrough | through | The in |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
through | PassThrough | in | The input 'in' |
Â
HasCommand
This node checks if there are commands in RealFlow with the given Class ID.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
class id | Integer64 | Â | The Class ID of the command to be checked |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
mask | Bit | Â | The mask |
Â
Kernel
The Kernel node is a special node that can be used to perform graph iterations in parallel.
If the start value is larger than the stop value, the kernel is not executed (except, if the stop value is negative).
A Kernel node must always be inside a Compound node. It cannot be created at root level.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
array | Â | The array | |
threads | Integer (1) |  | The threads |
start | Integer (1) |  | The index of the first element of the input to apply the kernel to. If negative, the array is processed from the first value |
stop | Integer (1) |  | The index of the last element of the input to apply the kernel to. If negative, the array is processed up to the last element |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
element | Â | The element | |
thread id | Integer | Â | The thread id |
index | Integer | Â | The index |
Â
MemoryUsageInfo
This node outputs the memory usage in kilobytes for the current state of the graph.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
in | PassThrough | through | The pin to query the memory usage from |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
pin kb | Real | Â | Memory usage in kilobytes for the pin connected to 'input' |
node kb | Real | Â | Memory usage in kilobytes for the node which owns the pin connected to 'input' |
graph kb | Real | Â | Memory usage in kilobytes for the whole current graph |
through | PassThrough | in | The input 'in' |
Â
MessagePrint
This node prints a standard RealFlow message in the MessageWindow, using a string representation of the provided input 'value'.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
value | All | through | The value |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
through | PassThrough | value | The input 'value' |
Â
NodePurgeMemory
This node purges the data stored in the owner of the connected 'input' pin.Nodes that allocate big data structures (like all the Copy nodes) store their data inside the node.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
in | PassThrough | through | The in |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
through | PassThrough | in | The input 'in' |
Â
Pass
This node acts as a passthrough node. The output value is exactly the same as the input. No copy is performed.
A common use of Pass nodes is the reduction of graph cluttering.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
in | PassThrough | through | The in |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
through | PassThrough | in | The input 'in' |
Â
PinPurgeMemory
This node purges the data stored in the connected 'input' pin.Basic types (like Integer or String) store their values in the pins.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
in | PassThrough | through | The in |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
through | PassThrough | in | The input 'in' |
Â
PinSignature
Computes the MD5 signature of the input data.
Basic types return a single value (except String values). Complex types return as many signatures as the input array size.
If something is wrong, the signature is 0xffffffffffffffffffffffffffffffff.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
in | PassThrough | through | The in |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
signature | String | Â | The signature of the input data |
through | PassThrough | in | The input 'in' |
Â
PythonCodeExecute
This node executes the input Python source code, but does not return any value.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
code | String (1) |  | The Python source code to be executed |
in | PassThrough | through | The in |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
through | PassThrough | in | The input 'in' |
Â
Selector
This node allows the user to freely connect its passthrough inputs to its passthrough outputs. Keep in mind that all outputs should have an associated input to avoid evaluation time errors.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
in | PassThrough | The in |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
out | PassThrough | The out |
Â
SetGraphNumberOfThreads
This node changes the number of threads used for the current compound and its children behind this nodes evaluation.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
threads | Integer (1) |  | The desired number of threads. 0 for default |
in | PassThrough | through | The in |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
through | PassThrough | in | The input 'in' |
Â
Sleep
This node freezes the graph evaluation for the input 'milisecs' amount of time in miliseconds.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
milisecs | Integer | Â | The miliseconds to sleep |
in | PassThrough | through | The in |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
through | PassThrough | in | The input 'in' |