Parameter connections
- Last UpdatedApr 24, 2024
- 1 minute read
A parameter connection is what creates and rules the dynamic and interactive behavior of an application. Together with command blocks and scheduler blocks, a parameter connection forms the scene logic. The connections are made using the route node.
About parameters
Inside the scripts, the parameters can be connected (routing), given values (commands) or used in various other ways such as conditional clauses and conditional blocks.
Defines can be considered as constant fields because they have name type and value.
Parameter attributes
The attributes that define a parameter are its name and its type.
|
Attribute |
Description |
|---|---|
|
name |
Defines the name of the parameter. |
|
type |
Defines the content of the parameter value. Examples: SVEC3 avatar.position=12.23 3.4 45.32 SBOOL viewer.visible=false SSTRING var.value=pippo |
Setting up parameter connections
Every parameter has a type. Set up a parameter connection between any two parameters that share the same type.
-
All the types are in the end strings with a particular formatting so SSTRING can be used as target for every other parameter type.
-
Parameter routing allows value overriding so a route can connect parameters of different types. The value indicated in the route clause is used instead of the source parameter.
-
The connection always routes in one direction only from source to target and not the reverse. This means that two or more sources could connect to a unique target. This happens when there are different external programs connected with the engine instance.
-
As a last note, defines cannot be included in routing as either source or target, due to being constants.