Visual Scripting

Visual Scripting in SimLab Composer is a tool created to minimize the programming effort for non-technical users with no coding skills. Therefore, instead of writing the computer code in a text editor, the Visual Scripting tool allows the user to develop her\his desired programs via block diagrams using a graphical user interface. This makes the code easier to be written as well as to be understood: Any designer, artist, or animator reading the diagrams can quickly grasp the flow of logic therein.

Getting Started

Select Visual Scripting from the automation workbench, the window shown below will appear with the following main parts:

 1)     Options to ‘Run’ the existing flow, ‘Create’ a new flow, ‘Open’, or ‘Save’ flows.
 2)     The Main Object Groups Bar, which includes the category titles of all the available sources and functions.
 3)     For each Object Group, corresponding ‘Sources’ and ‘Functions’ are available.
 4)     The ‘Work Space’, where blocks can be dragged, dropped, and linked to create the desired flow charts.


Any flow in the Visual Scripting should consist of three main components: source, smart block, and connections.

A) Source: Sources are used to define file paths and/or 3D nodes to be used as inputs for different blocks in the diagram. Users can find several source types in the sources tab.
B) Block: Blocks are basically functions that (can) take inputs and produce outputs. Each block performs a single process, for example, the block on the left side in the previous figure takes an integer number as input and converts it to a string as an output. Users can find several block types categorized into different tabs throughout the Main Object Groups Bar.
C) Connections: Connections are used to make the whole flowchart meaningful by linking sources and blocks. They thus define which sources and blocks are connected, accordingly, they arrange the execution order of the block diagram. The green parts on the blocks are not essential but they are very important to ensure the right execution order and to create dependencies between the blocks. To make the process easier for users. Ports on each block are colored based on the data type that should be passed through them.
After completing the flow diagram, hit the run button to start the execution, and a pop-up message will appear once the execution completes. Flowcharts can be saved and shared to be used in different projects.

To learn more about Visual Scripting in SimLab Composer, check the tutorial below, and visit the SimLab Visual Scripting web page

Revision #6
Created 20 September 2022 15:41:43 by Samia Sabri
Updated 8 December 2022 08:06:34 by Jamal Said